摘要: Apr 18 '12Given two integersnandk, return all possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a solution is:[ [2,4], [3,4], [2,3], [1,2], [1,3], [1,4], ]public class Solution { public ArrayList<ArrayList<Integer>> combine(int n, int k) { // Start ty... 阅读全文
posted @ 2013-02-10 05:38 西施豆腐渣 阅读(136) 评论(0) 推荐(0) 编辑