摘要: Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.Each numb... 阅读全文
posted @ 2015-12-20 21:58 hao.ma 阅读(150) 评论(0) 推荐(0)
摘要: Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repeate... 阅读全文
posted @ 2015-12-20 21:45 hao.ma 阅读(145) 评论(0) 推荐(0)
摘要: class Solution(object): def countAndSay(self, n): """ :type n: int :rtype: str """ s='1' for i in range(2... 阅读全文
posted @ 2015-12-20 13:50 hao.ma 阅读(133) 评论(0) 推荐(0)
摘要: #if you want to initialize a 9*9 two-dimensional array [([""]*9) for i in range(9)]#caution: the follow code can't work [[""]*9]*9shallow copies of l... 阅读全文
posted @ 2015-12-20 11:37 hao.ma 阅读(331) 评论(0) 推荐(0)