摘要: 一、选择排序思路:指定要排序的元素在数组中的位置i(一般默认从位置0开始),依次遍历数组,找出其中的最值然后和位置i对应的元素交换。代码:public static void selectSort(int arr[]){ for(int x=0; x arr[y]){ //swap(... 阅读全文
posted @ 2014-04-13 18:10 Self_improve 阅读(292) 评论(0) 推荐(0) 编辑