锘??xml version="1.0" encoding="utf-8" standalone="yes"?>中文精品视频,丁香五六月婷婷久久激情,国产精品91久久http://www.aygfsteel.com/wawlian/category/48451.htmlzh-cnWed, 25 May 2011 21:17:28 GMTWed, 25 May 2011 21:17:28 GMT60鎻掑叆鎺掑簭http://www.aygfsteel.com/wawlian/archive/2011/05/25/350998.htmlwawlianwawlianWed, 25 May 2011 06:02:00 GMThttp://www.aygfsteel.com/wawlian/archive/2011/05/25/350998.htmlhttp://www.aygfsteel.com/wawlian/comments/350998.htmlhttp://www.aygfsteel.com/wawlian/archive/2011/05/25/350998.html#Feedback0http://www.aygfsteel.com/wawlian/comments/commentRss/350998.htmlhttp://www.aygfsteel.com/wawlian/services/trackbacks/350998.html 1 //鍗囧簭鎻掑叆鎺掑簭
 2     public static int[] insertSort(int[] a) {
 3         for(int i = 1; i < a.length; i++) {
 4             int j = i-1;
 5             int tmp = a[i];
 6             while(j >= 0 && a[j] > tmp) {
 7                 a[j+1= a[j];
 8                 j = j -1;
 9             }
10             a[j+1= tmp;
11         
12         }
13         
14         return a;
15     }
16     
17     //闄嶅簭鎻掑叆鎺掑簭
18     public static int[] insertSortDesc(int[] a) {
19         for(int j=1; j < a.length; j++) {
20             int i = j - 1;
21             int key = a[j];
22             while(i >= 0 && a[i] < key) {
23                 a[i+1= a[i];
24                 --i;
25             }
26             a[i+1= key;
27         }
28         return a;
29     }

wawlian 2011-05-25 14:02 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 南城县| 湖口县| 阿尔山市| 临泉县| 赤壁市| 敦化市| 柏乡县| 镇赉县| 衡阳市| 大足县| 治县。| 亚东县| 会泽县| 图片| 绥德县| 都兰县| 广南县| 河池市| 天门市| 亳州市| 磴口县| 宣化县| 芷江| 南城县| 宁河县| 兴文县| 东港市| 安顺市| 南京市| 大埔县| 儋州市| 南投市| 辰溪县| 绥江县| 娄烦县| 介休市| 乌兰察布市| 泌阳县| 揭阳市| 旬阳县| 乃东县|