C语言链表
weixin_43163949
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C语言链表排序
struct llist_node* llist_sort(struct llist_node* head) { struct llist_node* tmp = head; struct llist_node* begin = head; if (head==NULL&&head->next==NULL) { return head; } while (begin) { ...原创 2020-04-30 19:19:05 · 1443 阅读 · 0 评论 -
C语言单链表删除包含某个值的所有节点
/* 删除包含某个值得所有节点,思路遍历计算出该值 出现的次数,然后写个大循环在里面处理值所在的节点在头部,中间,尾部的情况 */ struct llist_node* llist_delete(struct llist_node* head, int value) { struct llist_node* tmp = head; struct llist_node* pt...原创 2020-04-27 22:03:26 · 1784 阅读 · 0 评论 -
C语言单链表
C与C++学习 1.冒泡排序 2.单链表(一)常见操作创建,遍历,逆序,释放 #include<stdio.h> #include<malloc.h> /* struct llist / struct llist_node { int value; struct llist_node next; }; /* create single llist / struct llis...原创 2020-04-25 16:13:27 · 169 阅读 · 0 评论
分享