- 博客(2)
- 收藏
- 关注
原创 顺序表的操作
//顺序表的操作 List MakeEmpty() { List head=(List)malloc(sizeof(struct LNode)); head->Last=0; return head; } //返回线性表中x的位置 Position Find( List L, ElementType X ) { if(!L) return ERROR; for(int i=...
2019-10-09 13:53:02 265
原创 链表的操作(有头无头)
//尾插法创建单链表 struct Node* buildLinkedList(int* arr, int n) { struct Node*p,*q,*head; head=(struct Node*)malloc(sizeof(struct Node)); head->link=NULL; p=head; for(int i=0;i<n;i++) { q=(str...
2019-10-09 13:48:31 202
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人