2013年11月5日

四种语言完美实现组合算法

摘要: php<?phpfunction rxn($start, $bit, $n, $m) { static $name = __FUNCTION__; static $result = array(); static $arr = array(); for ($i=$start; $i<$n-$m+$bit; $i++) { $arr[$bit-1] = $i; if ($bit == $m) { array_push($result, $arr); } else if ($bit < $m) { ... 阅读全文

posted @ 2013-11-05 23:57 mtima 阅读(214) 评论(0) 推荐(0) 编辑

导航