锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲日韩欧洲无码av夜夜摸,亚洲午夜AV无码专区在线播放,亚洲日本乱码一区二区在线二产线http://m.tkk7.com/junglesong/category/29599.html涓栦笂鏈棤闅句簨錛屽績浠ヤ負闅撅紝鏂箖鐪熼毦銆傝嫙涓嶅瓨涓闅句箣瑙佷簬蹇冿紝鍒欒繍鐢ㄤ箣鏈嚜鍑恒?/description>zh-cnMon, 24 Mar 2008 21:35:48 GMTMon, 24 Mar 2008 21:35:48 GMT60- 鍏ㄦ帓鍒楃畻娉曠ず渚?/title>http://m.tkk7.com/junglesong/archive/2008/03/25/188396.html鍜岄緇嗛洦鍜岄緇嗛洦Mon, 24 Mar 2008 21:33:00 GMThttp://m.tkk7.com/junglesong/archive/2008/03/25/188396.htmlhttp://m.tkk7.com/junglesong/comments/188396.htmlhttp://m.tkk7.com/junglesong/archive/2008/03/25/188396.html#Feedback0http://m.tkk7.com/junglesong/comments/commentRss/188396.htmlhttp://m.tkk7.com/junglesong/services/trackbacks/188396.html
package com.sitinspring;


/** *//**
* 鍏ㄦ帓鍒楃畻娉曠ず渚?br />
濡傛灉鐢≒琛ㄧずn涓厓绱犵殑鎺掑垪錛岃孭i琛ㄧず涓嶅寘鍚厓绱爄鐨勬帓鍒楋紝(i)Pi琛ㄧず鍦ㄦ帓鍒桺i鍓嶅姞涓婂墠緙i鐨勬帓鍒楋紝閭d箞錛宯涓厓绱犵殑鎺掑垪鍙掑綊瀹氫箟涓猴細
濡傛灉n=1錛屽垯鎺掑垪P鍙湁涓涓厓绱爄
濡傛灉n>1錛屽垯鎺掑垪P鐢辨帓鍒?i)Pi鏋勬垚錛坕=1銆?銆?img src="http://m.tkk7.com/Images/dot.gif" alt="" />.銆乶-1錛夈?br />
鏍規嵁瀹氫箟錛屽鏄撶湅鍑哄鏋滃凡緇忕敓鎴愪簡k-1涓厓绱犵殑鎺掑垪錛岄偅涔堬紝k涓厓绱犵殑鎺掑垪鍙互鍦ㄦ瘡涓猭-1涓厓绱犵殑鎺掑垪Pi鍓嶆坊鍔犲厓绱爄鑰岀敓鎴愩?br />
渚嬪2涓厓绱犵殑鎺掑垪鏄? 2鍜? 1錛屽3涓厓绱犺岃█錛宲1鏄? 3鍜? 2錛屽湪姣忎釜鎺掑垪鍓嶅姞涓?鍗崇敓鎴? 2 3鍜? 3 2涓や釜鏂版帓鍒楋紝
p2鍜宲3鍒欐槸1 3銆? 1鍜? 2銆? 1錛?br />
鎸夊悓鏍鋒柟娉曞彲鐢熸垚鏂版帓鍒? 1 3銆? 3 1鍜? 1 2銆? 2 1銆?br />
* @author: sitinspring(junglesong@gmail.com)
* @date: 2008-3-25
*/

public class Permutation<T>
{

public static void main(String[] args)
{

String[] arr=
{"1","2","3"};
Permutation<String> a=new Permutation<String>();
a.permutation(arr,0,arr.length);
}

public void permutation(T[] arr,int start,int end)
{

if(start<end+1)
{
permutation(arr,start+1,end);

for(int i=start+1;i<end;i++)
{
T temp;
temp=arr[start];
arr[start]=arr[i];
arr[i]=temp;
permutation(arr,start+1,end);
temp=arr[i];
arr[i]=arr[start];
arr[start]=temp;
}
}

else
{

for(int i=0;i<end;i++)
{
System.out.print(arr[i]);
}
System.out.print("\n");
}
}
}

]]> - 鑰冭瘯鍒嗘暟鎺掑簭鐨勪笁縐嶆帓搴忔柟寮忕殑姣旇緝http://m.tkk7.com/junglesong/archive/2008/03/10/185190.html鍜岄緇嗛洦鍜岄緇嗛洦Mon, 10 Mar 2008 13:20:00 GMThttp://m.tkk7.com/junglesong/archive/2008/03/10/185190.htmlhttp://m.tkk7.com/junglesong/comments/185190.htmlhttp://m.tkk7.com/junglesong/archive/2008/03/10/185190.html#Feedback0http://m.tkk7.com/junglesong/comments/commentRss/185190.htmlhttp://m.tkk7.com/junglesong/services/trackbacks/185190.html闃呰鍏ㄦ枃

]]> - 浜屽垎鏌ユ壘紺轟緥浜岋紙瀵歸摼琛ㄨ繘琛屾煡鎵撅級http://m.tkk7.com/junglesong/archive/2008/03/08/184686.html鍜岄緇嗛洦鍜岄緇嗛洦Sat, 08 Mar 2008 07:00:00 GMThttp://m.tkk7.com/junglesong/archive/2008/03/08/184686.htmlhttp://m.tkk7.com/junglesong/comments/184686.htmlhttp://m.tkk7.com/junglesong/archive/2008/03/08/184686.html#Feedback0http://m.tkk7.com/junglesong/comments/commentRss/184686.htmlhttp://m.tkk7.com/junglesong/services/trackbacks/184686.html闃呰鍏ㄦ枃

]]> - 浜屽垎娉曟煡鎵劇ず渚?/title>http://m.tkk7.com/junglesong/archive/2008/03/08/184678.html鍜岄緇嗛洦鍜岄緇嗛洦Sat, 08 Mar 2008 06:26:00 GMThttp://m.tkk7.com/junglesong/archive/2008/03/08/184678.htmlhttp://m.tkk7.com/junglesong/comments/184678.htmlhttp://m.tkk7.com/junglesong/archive/2008/03/08/184678.html#Feedback0http://m.tkk7.com/junglesong/comments/commentRss/184678.htmlhttp://m.tkk7.com/junglesong/services/trackbacks/184678.html
package com.junglesong;


/** *//**
* 浜屽垎鏌ユ壘紺轟緥
* @author: sitinspring(junglesong@gmail.com)
* @date: 2008-3-8
*/

public class BinSearch
{

public static void main(String[] args)
{
// 嬈叉煡鎵劇殑鏁扮粍

int[] arr=
{1,2,3,4,5,6,77,88,656,5000,40000};
// 嫻嬭瘯鏁扮粍

int[] temp=
{4,5,6,77,88,656,1,2,400};

for(int i:temp)
{
System.out.println("鍊?/span>"+i+"鐨勪笅鏍囦負"+binSearch(arr,i));
}
}

/** *//**
* 浜屽垎鏌ユ壘
* @param sortedArray 宸叉帓搴忕殑嬈叉煡鎵劇殑鏁扮粍
* @param seachValue 鏌ユ壘鐨勫?br />
* @return 鎵懼埌鐨勫厓绱犱笅鏍囷紝鑻ユ壘涓嶅埌鍒欒繑鍥?1
*/

public static int binSearch(int[] sortedArray,int seachValue)
{
// 宸﹁竟鐣?/span>
int leftBound=0;
// 鍙寵竟鐣?/span>
int rightBound=sortedArray.length-1;
// 褰撳墠涓嬫爣浣嶇疆
int curr;

while(true)
{
// 瀹氫綅鍦ㄥ乏杈圭晫鍜屽彸杈圭晫涓棿
curr=(leftBound+rightBound)/2;

if(sortedArray[curr]==seachValue)
{
// 鎵懼埌鍊?/span>
return curr;
}

else if(leftBound>rightBound)
{
// 宸﹁竟鐣屽ぇ浜庡彸杈圭晫錛屽凡緇忔壘涓嶅埌鍊?/span>
return -1;
}

else
{

if(sortedArray[curr]<seachValue)
{
// 褰撳綋鍓嶄笅鏍囧搴旂殑鍊煎皬浜庢煡鎵劇殑鍊兼椂錛岀緝鐭乏杈圭晫
leftBound=curr+1;
}

else
{
// 褰撳綋鍓嶄笅鏍囧搴旂殑鍊煎ぇ浜庢煡鎵劇殑鍊兼椂錛岀緝鐭彸杈圭晫
rightBound=curr-1;
}
}
}
}
}
浠g爜涓嬭澆錛?br />
http://m.tkk7.com/Files/junglesong/BinSearch20080308150836.rar

]]> - 姹傞泦鍚堝樊鐨勫嚑縐嶇畻娉?/title>http://m.tkk7.com/junglesong/archive/2008/03/08/184620.html鍜岄緇嗛洦鍜岄緇嗛洦Fri, 07 Mar 2008 18:25:00 GMThttp://m.tkk7.com/junglesong/archive/2008/03/08/184620.htmlhttp://m.tkk7.com/junglesong/comments/184620.htmlhttp://m.tkk7.com/junglesong/archive/2008/03/08/184620.html#Feedback0http://m.tkk7.com/junglesong/comments/commentRss/184620.htmlhttp://m.tkk7.com/junglesong/services/trackbacks/184620.html闃呰鍏ㄦ枃

]]> - 浣跨敤LinkedHashMap榪涜鍒嗘暟鎺掑簭http://m.tkk7.com/junglesong/archive/2008/03/04/183785.html鍜岄緇嗛洦鍜岄緇嗛洦Tue, 04 Mar 2008 13:06:00 GMThttp://m.tkk7.com/junglesong/archive/2008/03/04/183785.htmlhttp://m.tkk7.com/junglesong/comments/183785.htmlhttp://m.tkk7.com/junglesong/archive/2008/03/04/183785.html#Feedback0http://m.tkk7.com/junglesong/comments/commentRss/183785.htmlhttp://m.tkk7.com/junglesong/services/trackbacks/183785.html闃呰鍏ㄦ枃

]]> - 鐢ㄥ尶鍚嶇被澶勭悊鍒嗙被姹囨葷殑鏂規硶 http://m.tkk7.com/junglesong/archive/2008/02/22/181350.html鍜岄緇嗛洦鍜岄緇嗛洦Fri, 22 Feb 2008 04:15:00 GMThttp://m.tkk7.com/junglesong/archive/2008/02/22/181350.htmlhttp://m.tkk7.com/junglesong/comments/181350.htmlhttp://m.tkk7.com/junglesong/archive/2008/02/22/181350.html#Feedback0http://m.tkk7.com/junglesong/comments/commentRss/181350.htmlhttp://m.tkk7.com/junglesong/services/trackbacks/181350.html闃呰鍏ㄦ枃

]]>
主站蜘蛛池模板:
情人伊人久久综合亚洲|
成全视频在线观看免费高清动漫视频下载|
亚洲国产精品乱码一区二区|
在线成人爽a毛片免费软件|
国产AV旡码专区亚洲AV苍井空|
最近中文字幕大全免费视频|
99亚偷拍自图区亚洲|
亚洲中文字幕无码久久精品1|
最近中文字幕大全免费视频|
国产偷国产偷亚洲高清人|
国产高清在线免费视频|
亚洲视频一区二区三区四区|
亚洲高清最新av网站|
黄色网址在线免费观看|
国产一级做a爱免费视频|
久久免费线看线看|
老子影院午夜伦不卡亚洲|
国产三级免费电影|
91精品视频在线免费观看|
老司机午夜性生免费福利|
亚洲免费观看网站|
亚洲精品国精品久久99热一|
久久成人免费电影|
日本免费精品一区二区三区|
亚洲三级中文字幕|
亚洲AV无码专区国产乱码电影|
国产成人精品高清免费|
中文字幕免费在线看线人|
亚洲免费综合色在线视频|
全部免费毛片免费播放|
亚洲免费在线观看视频|
a级片免费在线观看|
边摸边脱吃奶边高潮视频免费|
亚洲欧洲精品视频在线观看|
午夜精品在线免费观看|
无码国产精品一区二区免费3p|
a级毛片免费高清视频|
久久亚洲免费视频|
亚洲日本中文字幕一区二区三区|
久久免费精品视频|
男女一边摸一边做爽的免费视频
|