数据结构
qq_38253703
这个作者很懒,什么都没留下…
展开
-
C语言快速排序,归并排序
#include <stdio.h> #include <stdlib.h> void quikSort(int[], int, int); void mergeSort(int[], int, int); void merge(int[], int, int, int); void swap(int[], int, int); int patition(int[], int, int); int numberOfThree(int[], int, int); int原创 2021-09-17 17:46:28 · 174 阅读 · 0 评论 -
C语言二叉树操作
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> typedef struct BTNode { char data; struct BTNode *lChild; struct BTNode *rChild; } BTNODE, *BTREE; BTREE create(); void preOrder(BTREE); void inOrder(BTREE); void原创 2021-09-16 16:58:58 · 113 阅读 · 0 评论 -
C语言队列的算法操作
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> typedef struct Node { int data; struct Node *pNext; } NODE, *PNODE; typedef struct Queue { PNODE pFront; PNODE pRear; } QUEUE, *PQUEUE; void init(PQUEUE); voi原创 2021-09-06 15:19:37 · 163 阅读 · 0 评论 -
C语言栈的操作算法
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> typedef struct Node { int data; struct Node *pNext; } NODE, *PNODE; typedef struct Stack { PNODE pTop; PNODE pBottom; } STACK, *PSTACK; void init(PSTACK); voi原创 2021-09-03 17:53:12 · 118 阅读 · 0 评论 -
C语言连续存储数组的算法
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> struct Arr { int *pBase; int len; int cnt; }; void init_arr(struct Arr *arr, int length); bool append_arr(struct Arr *arr, int val); bool delete_arr(struct Arr *arr,原创 2021-09-02 18:28:04 · 135 阅读 · 0 评论