
PTA
jashon.Q
这个作者很懒,什么都没留下…
展开
-
6-1 单链表逆转 (20 point(s))
@PTA6-1 单链表逆转 (20 point(s))本题要求实现一个函数,将给定的单链表逆转。函数接口定义:List Reverse( List L );其中List结构定义如下:typedef struct Node *PtrToNode;struct Node { ElementType Data; /* 存储结点数据 */ PtrToNode Next;...原创 2019-05-07 09:36:19 · 1702 阅读 · 0 评论 -
6-2 顺序表操作集 (20 point(s))
@https://pintia.cn/problem-sets/15/problems/7256-2 顺序表操作集 (20 point(s))本题要求实现顺序表的操作集。函数接口定义:List MakeEmpty(); Position Find( List L, ElementType X );bool Insert( List L, ElementType X, Position ...原创 2019-05-07 09:49:34 · 1073 阅读 · 1 评论 -
6-3 求链式表的表长 (10 point(s))
@https://pintia.cn/problem-sets/15/problems/7266-3 求链式表的表长 (10 point(s))本题要求实现一个函数,求链式表的表长。函数接口定义:int Length( List L );其中List结构定义如下:typedef struct LNode *PtrToLNode;struct LNode { ElementT...原创 2019-05-07 18:36:55 · 263 阅读 · 0 评论 -
6-4 链式表的按序号查找 (10 point(s))
@https://pintia.cn/problem-sets/15/problems/7276-4 链式表的按序号查找 (10 point(s))本题要求实现一个函数,找到并返回链式表的第K个元素。函数接口定义:ElementType FindKth( List L, int K );其中List结构定义如下:typedef struct LNode *PtrToLNode;st...原创 2019-05-07 18:56:51 · 669 阅读 · 0 评论 -
6-5 链式表操作集 (20 point(s))
@https://pintia.cn/problem-sets/15/problems/7286-5 链式表操作集 (20 point(s))本题要求实现链式表的操作集。函数接口定义:Position Find( List L, ElementType X );List Insert( List L, ElementType X, Position P );List Delete( L...原创 2019-05-07 19:03:30 · 825 阅读 · 0 评论 -
6-6 带头结点的链式表操作集 (20 point(s))
@https://pintia.cn/problem-sets/15/problems/7296-6 带头结点的链式表操作集 (20 point(s))本题要求实现带头结点的链式表操作集。函数接口定义:List MakeEmpty(); Position Find( List L, ElementType X );bool Insert( List L, ElementType X, ...原创 2019-05-07 19:22:18 · 876 阅读 · 1 评论 -
6-7 在一个数组中实现两个堆栈 (20 point(s))
@https://pintia.cn/problem-sets/15/problems/7306-7 在一个数组中实现两个堆栈 (20 point(s))本题要求在一个数组中实现两个堆栈。函数接口定义:Stack CreateStack( int MaxSize );bool Push( Stack S, ElementType X, int Tag );ElementType Pop...原创 2019-05-21 08:00:47 · 1395 阅读 · 1 评论