数据结构
小少年驭风
在学校读书的小伙子
展开
-
约瑟夫环双向列表之终极优化
#include #include typedef struct Node { Node *pre; Node *next; int data; } *List; void Init(List &l,int n) { Node *p,*current; p=(List)malloc(sizeof(Node)); p->pre=NULL;原创 2017-12-01 12:12:44 · 281 阅读 · 0 评论 -
数据结构3.11答案 递归的查询单链表的其中的记录,以及最大能够让堆栈crash的值
#include #include typedef struct Node { Node *next; int data; } *List; void Init(List &l,int n) { Node *p,*current; p=(List)malloc(sizeof(Node)); p->data=1; p->next=NULL; l原创 2017-12-01 13:31:49 · 215 阅读 · 0 评论