摘要:
http://www.lintcode.com/zh-cn/problem/permutation-sequence/# 原题 给定 n 和 k,求123..n组成的排列中的第 k 个排列。 注意事项 1 ≤ n ≤ 9 给定 n 和 k,求123..n组成的排列中的第 k 个排列。 注意事项 1 阅读全文
posted @ 2017-03-28 15:09
小丑进场
阅读(536)
评论(0)
推荐(0)
摘要:
原题 Given a collection of distinct numbers, return all possible permutations. For example,[1,2,3] have the following permutations: 解题思路 递归:递归的方法,创建一个vi 阅读全文
posted @ 2017-03-28 11:11
小丑进场
阅读(156)
评论(0)
推荐(0)
摘要:
原题 Given a binary tree, find the maximum path sum. For this problem, a path is defined as any sequence of nodes from some starting node to any node in 阅读全文
posted @ 2017-03-28 09:12
小丑进场
阅读(133)
评论(0)
推荐(0)

浙公网安备 33010602011771号