- 博客(2)
- 收藏
- 关注
原创 试以单链表为存储结构,实现简单选择排序算法。
3.(1)#include <stdio.h>#include <stdlib.h>typedef int status;typedef int elemtype;typedef struct lnode{ elemtype data; struct lnode *link;}lnode,*linknode;typedef struct{ linknode head,rear; int len;}linklist; void init_linkl
2021-05-30 20:57:30 8038 3
原创 各内部排序算法时间复杂度比较
#include <stdio.h>#include <stdlib.h>#include <conio.h>#include <time.h>void get_data(int r[],int n){int i;srand( (unsigned)time( NULL ) );for(i=1;i<=n;i++)r[i]=rand()%100;}void reverse_data(int r[],int n){int i;f...
2021-05-30 20:42:42 195
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人