随笔分类 -  数据结构

摘要: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 阅读全文
posted @ 2017-11-19 19:56 Zireael 阅读(133) 评论(0) 推荐(0)
摘要:本文转载自: 数据结构中表示邻接表的一般方法 typedef struct Node { int dest; //邻接边的弧头结点序号 int weight; //权值信息 struct Node next; //指向下一条邻接边 }Edge; //单链表结点的结构体 typedef struct 阅读全文
posted @ 2017-10-25 15:56 Zireael 阅读(617) 评论(1) 推荐(0)