- 博客(2)
- 收藏
- 关注
原创 桶排序
/******桶排序******//*将 0~N-1 范围区间的数 组成的数组进行排列*/#include<stdio.h>#define N 1000 void bucketSort(int *arr, const int size){ int tmparr[N] = {0}; for (int i = 0; i < size; i++) {
2017-09-30 16:34:14
99
原创 冒泡排序
/******** 冒泡排序 *******/1.对数组进行冒泡排序#include <stdio.h>void bubbleRevSort(int *arr, int size) //大的数在前,小的数在后,逆序{ int i, j; for (i = 1; i < size; i++) { for (j = 0; j < size - i; j++
2017-09-29 11:20:49
107
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人