2024/10/30 数据结构大题打卡

typedef struct Link {

unsigned id;

unsigned ip;

int metric;

struct Link *next;

} Link;

typedef struct Net {

unsigned prefix; // 注意拼写

int metric;

struct Net *next; // 如果 Net 也是链表

} Net;

typedef struct L {

Link *linkHead; // 链表头指针,用于链接 Link 链表

Net *netHead; // 链表头指针,用于链接 Net 链表

struct L *nextLevel; // 指向下一个 L 结构体,构成链表结构

unsigned ID;

} L;

相关推荐
ValhallaCoder4 小时前
hot100-二叉树I
数据结构·python·算法·二叉树
月挽清风5 小时前
代码随想录第十五天
数据结构·算法·leetcode
NEXT066 小时前
前端算法:从 O(n²) 到 O(n),列表转树的极致优化
前端·数据结构·算法
小妖6669 小时前
js 实现快速排序算法
数据结构·算法·排序算法
独好紫罗兰11 小时前
对python的再认识-基于数据结构进行-a003-列表-排序
开发语言·数据结构·python
wuhen_n12 小时前
JavaScript内置数据结构
开发语言·前端·javascript·数据结构
2401_8414956412 小时前
【LeetCode刷题】二叉树的层序遍历
数据结构·python·算法·leetcode·二叉树··队列
独好紫罗兰12 小时前
对python的再认识-基于数据结构进行-a002-列表-列表推导式
开发语言·数据结构·python
2401_8414956412 小时前
【LeetCode刷题】二叉树的直径
数据结构·python·算法·leetcode·二叉树··递归
数智工坊12 小时前
【数据结构-树与二叉树】4.5 线索二叉树
数据结构