08 2015 档案

摘要:Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the f... 阅读全文
posted @ 2015-08-14 05:11 米丹 阅读(227) 评论(0) 推荐(0)
摘要:题目Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums excep... 阅读全文
posted @ 2015-08-09 01:38 米丹 阅读(166) 评论(0) 推荐(0)
摘要:Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))... 阅读全文
posted @ 2015-08-09 01:01 米丹 阅读(136) 评论(0) 推荐(0)
摘要:There are n coins with different value in a line. Two players take turns to take one or two coins from left side until there are no more coins left. T... 阅读全文
posted @ 2015-08-07 07:45 米丹 阅读(255) 评论(0) 推荐(0)
摘要:Given a collection of numbers, return all possible permutations.For example,[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,... 阅读全文
posted @ 2015-08-05 04:20 米丹 阅读(169) 评论(0) 推荐(0)