> 其他 >
32,74,25,53,28,43,86,37中元素从小到大顺序排列
将数组(32.74,25,53,28,43,86,37)中的元素按从小到大的顺序排列,每次可以交换任意两个元素,最少需要交换几次?需要过程
人气:350 ℃ 时间:2020-02-05 10:24:42
解答
#include "stdio.h"
int count;
void quicksort(int data[],int low,int high)
{/*用快速排序方法数组元素data[low..high]作排序*/
int i,pivot,j;
if(low
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版