摘要: Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., N and pop randomly. You are supposed to tell if a given s 阅读全文
posted @ 2020-03-14 21:01 PennyXia 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 本题要求实现一个函数,将给定的单链表逆转。 函数接口定义: List Reverse( List L ); 其中List结构定义如下: typedef struct Node *PtrToNode; struct Node { ElementType Data; /* 存储结点数据 */ PtrTo 阅读全文
posted @ 2020-03-14 09:02 PennyXia 阅读(597) 评论(0) 推荐(0) 编辑