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;

相关推荐
tju新生代魔迷16 分钟前
数据结构:双向链表
数据结构·链表
songx_992 小时前
leetcode9(跳跃游戏)
数据结构·算法·游戏
学c语言的枫子2 小时前
数据结构——双向链表
c语言·数据结构·链表
Boop_wu3 小时前
[数据结构] 栈 · Stack
数据结构
kk”3 小时前
C语言快速排序
数据结构·算法·排序算法
3壹3 小时前
数据结构精讲:栈与队列实战指南
c语言·开发语言·数据结构·c++·算法
papership4 小时前
【入门级-算法-6、排序算法:选择排序】
数据结构·算法·排序算法
YS_Geo7 小时前
Redis 深度解析:数据结构、持久化与集群
数据结构·数据库·redis
njxiejing7 小时前
Pandas数据结构(DataFrame,字典赋值)
数据结构·人工智能·pandas
tju新生代魔迷7 小时前
数据结构:单链表以及链表题
数据结构·链表