LeetCode-Dynamic Programming
R_zz
这个作者很懒,什么都没留下…
展开
-
LeetCode-70. Climbing Stairs
问题:https://leetcode.com/problems/climbing-stairs/?tab=Description You 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 distinc原创 2017-02-25 16:25:22 · 222 阅读 · 0 评论 -
LeetCode-198. House Robber
问题:https://leetcode.com/problems/house-robber/?tab=Description You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constrain原创 2017-02-27 10:57:08 · 173 阅读 · 0 评论 -
LeetCode-303. Range Sum Query - Immutable
问题:https://leetcode.com/problems/range-sum-query-immutable/?tab=Description Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example:Given nums =原创 2017-02-27 11:23:23 · 176 阅读 · 0 评论