- 博客(7)
- 收藏
- 关注
原创 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
1390
1
原创 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
875
1
原创 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
822
原创 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
667
原创 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
259
原创 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
1070
1
原创 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
1701
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人