摘要: 本题要求实现一个函数,将两个链表表示的递增整数序列合并为一个非递减的整数序列。 函数接口定义: List Merge( List L1, List L2 ); 其中List结构定义如下: typedef struct Node *PtrToNode; str... 阅读全文
posted @ 2017-11-02 21:38 Western_Trail 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 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 t... 阅读全文
posted @ 2017-11-02 21:33 Western_Trail 阅读(114) 评论(0) 推荐(0) 编辑