Fork me on GitHub
摘要: PHP代码如下: 1 $arr){25 if ($arr[0] == $aInsert[0]){26 $maxCmpIdx = $idx;27 }28 $cnt++;29 }30 if ( !$maxCmpIdx){31 $maxCmpIdx = $cnt++;32 }33 $aSorted[$maxCmpIdx] = $aInsert;34 for ($i = $maxCmpIdx; $i > 0; $i--){35 if ($aSorted[$i][1] > $aSorted[$i-1][1]){36 $aTmp =... 阅读全文
posted @ 2012-06-06 13:28 huan&ping 阅读(731) 评论(0) 推荐(0)