343. Integer Break

Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum pr...

2017-09-01 09:37:49

阅读数:177

评论数:0

413. Arithmetic Slices(等差级数)

标签(空格分隔): leetcode dpA sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consec...

2017-08-24 22:56:48

阅读数:158

评论数:0

70. Climbing Stairs(登高)

标签(空格分隔): leetcode dpYou are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many dis...

2017-08-24 21:45:38

阅读数:95

评论数:0

121. Best Time to Buy and Sell Stock

标签(空格分隔): leetcode dpSay you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at...

2017-08-24 21:19:03

阅读数:125

评论数:0

198. House Robber(入室强盗)

标签(空格分隔): leetcode dpYou are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only ...

2017-08-24 20:54:32

阅读数:113

评论数:0

53. Maximum Subarray(最大子序列)

标签(空格分隔): leetcode dp#Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the ...

2017-08-24 20:53:47

阅读数:114

评论数:0

303. Range Sum Query - Immutable

标签(空格分隔): leetcode dp范围和查询-不可变的Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive.Example:Given nu...

2017-08-24 20:52:51

阅读数:91

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭