随笔分类 - 数据结构
摘要:A number sequence is defined as follows: f(1) = 1, f(2) = 1, f(n) = (A f(n 1) + B f(n 2)) mod 7. Given A, B, and n, you are to calculate the value of
阅读全文
摘要:本文转载自: 数据结构中表示邻接表的一般方法 typedef struct Node { int dest; //邻接边的弧头结点序号 int weight; //权值信息 struct Node next; //指向下一条邻接边 }Edge; //单链表结点的结构体 typedef struct
阅读全文

浙公网安备 33010602011771号