上一页 1 2 3 4 5 6 ··· 15 下一页
摘要: 题目描述: 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) 编辑
摘要: 题目描述: Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example, Given n = 3, You should return the 阅读全文
posted @ 2016-03-14 22:34 skycore 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 题目描述: Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. For example,Given the following matrix: 阅读全文
posted @ 2016-03-12 17:32 skycore 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 题目描述: Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [−2,1,−3,4 阅读全文
posted @ 2016-03-11 20:16 skycore 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 题目描述: Given a collection of numbers that might contain duplicates, return all possible unique permutations. For example,[1,1,2] have the following uni 阅读全文
posted @ 2016-03-11 19:13 skycore 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 题目描述: 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. Ea 阅读全文
posted @ 2016-03-10 12:57 skycore 阅读(159) 评论(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  阅读全文
posted @ 2016-03-10 12:27 skycore 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 题目描述: Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set 阅读全文
posted @ 2016-03-08 22:10 skycore 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 内容来自《C++ Primer》第五版: 一个lambda表达式表示一个可调用的代码单元,可以将其理解成一个未命名的内联函数。与任何函数类似,一个lambda具有一个返回类型、一个参数列表和一个函数体。具体形式是: 1 // capture list(捕获列表)是一个lambda所在函数中定义的局部 阅读全文
posted @ 2016-03-04 16:35 skycore 阅读(733) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 15 下一页