摘要: 题目描述: Given a collection of distinct numbers, return all possible permutations. For example,[1,2,3] have the following permutations:[1,2,3], [1,3,2],  阅读全文
posted @ 2016-03-15 16:41 skycore 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 题目描述: Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3,Return [1,3,3,1]. Note:Could you optimize your algorithm 阅读全文
posted @ 2016-03-15 16:40 skycore 阅读(127) 评论(0) 推荐(0) 编辑