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;

相关推荐
墨雪不会编程1 天前
数据结构—排序算法篇二
数据结构·算法·排序算法
ShineWinsu1 天前
对于数据结构:堆的超详细保姆级解析—上
数据结构·c++·算法·计算机·二叉树·顺序表·
时间醉酒1 天前
数据结构:双向链表-从原理到实战完整指南
c语言·数据结构·算法
好学且牛逼的马1 天前
【HOT100|1 LeetCode 1. 两数之和】
数据结构·算法·leetcode
麦烤楽鸡翅1 天前
挡住洪水 (牛客)
java·数据结构·c++·python·算法·bfs·牛客
ʚ希希ɞ ྀ1 天前
leeCode hot 100 !!!持续更新中
数据结构·算法·leetcode
Jeff-Nolan1 天前
数据结构(c++版):邻接表的实现
数据结构·链表
wyiyiyi1 天前
【数据结构+算法】进栈顺序推算、卡特兰数与逆波兰表达式
汇编·数据结构·笔记·算法
guguhaohao1 天前
map和set,咕咕咕!
数据结构·c++
TL滕1 天前
从0开始学算法——第二天(时间、空间复杂度)
数据结构·笔记·学习·算法