随笔分类 -  数据结构

摘要:1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <stdbool.h> 4 #include <string.h> 5 6 #define NUM 3 7 8 typedef struct { 9 int a; 10 int b; 11 } 阅读全文
posted @ 2020-11-05 23:33 hemeiwolong 阅读(103) 评论(0) 推荐(0) 编辑
摘要:题目来源:LeetCode739 1 // 链表节点 2 typedef struct Node { 3 int value; // 气温 4 int index; // 下标 5 struct Node *next; 6 } pNode; 7 8 // 栈 9 typedef struct MyS 阅读全文
posted @ 2020-05-23 10:46 hemeiwolong 阅读(159) 评论(0) 推荐(0) 编辑
摘要:1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <stdbool.h> 4 5 typedef struct { 6 int val; 7 struct MyLinkedList *next; 8 } MyLinkedList; 9 10 阅读全文
posted @ 2020-05-15 11:07 hemeiwolong 阅读(193) 评论(0) 推荐(0) 编辑
摘要:参考与原理:https://www.jianshu.com/p/ef71e04241e4 https://blog.csdn.net/danny_idea/article/details/89504629 1 #include <bits/stdc++.h> 2 using namespace st 阅读全文
posted @ 2020-03-13 12:12 hemeiwolong 阅读(161) 评论(0) 推荐(0) 编辑
摘要:参考:https://blog.csdn.net/adusts/article/details/80882649 部分修改后代码: 阅读全文
posted @ 2019-03-11 21:06 hemeiwolong 阅读(361) 评论(0) 推荐(0) 编辑
摘要:1 #include 2 #include 3 #include 4 const int N=100; 5 int n=50,step; 6 int in[N]; 7 void binsort() 8 { 9 int l,r,id; 10 for (int i=1;i=l;j--) 26 { 27 in[j+1]=i... 阅读全文
posted @ 2019-01-04 19:42 hemeiwolong 阅读(227) 评论(0) 推荐(0) 编辑
摘要:参考:https://blog.csdn.net/ZscDst/article/details/80266639 阅读全文
posted @ 2018-08-07 01:09 hemeiwolong 阅读(87) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示