C语言
文章平均质量分 75
TIX_hjq
这个作者很懒,什么都没留下…
展开
-
Hello _Code 关于(N+M)木桶排序
大一新生,第一次开blog,想想还有点小激动随便写一点最近经常使用的木桶排序int main(void){1.写一个能够容纳你数字个数的数组,例如做20-30排序count[31],并初始化他int count[31]={0};//需排序的数组 a[10];int i;for(i=0;icount[a[i]]++;int j=0;for(i=0;i{//遍历他,if count>0,表示原数组有这原创 2018-01-02 16:28:28 · 197 阅读 · 0 评论 -
关于双向循环链表基本操作
简单写了一下,留作纪念,欢迎指错----->#include<stdio.h>#include<stdlib.h>typedef struct _node{ int val; struct _node *next; struct _node *prev;}Node;typedef struct _list{ Node *head; Nod...原创 2018-02-11 02:37:35 · 214 阅读 · 0 评论