随笔分类 - 数据结构
摘要: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 }
阅读全文
摘要:题目来源:LeetCode739 1 // 链表节点 2 typedef struct Node { 3 int value; // 气温 4 int index; // 下标 5 struct Node *next; 6 } pNode; 7 8 // 栈 9 typedef struct MyS
阅读全文
摘要: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
阅读全文
摘要:参考与原理:https://www.jianshu.com/p/ef71e04241e4 https://blog.csdn.net/danny_idea/article/details/89504629 1 #include <bits/stdc++.h> 2 using namespace st
阅读全文
摘要:参考:https://blog.csdn.net/adusts/article/details/80882649 部分修改后代码:
阅读全文
摘要: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...
阅读全文
摘要:参考:https://blog.csdn.net/ZscDst/article/details/80266639
阅读全文