
Leetcode_Dynamic Programming
佛系城
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
189. Rotate Array
题目来源【Leetcode】 Given an array of integers and an integer k, you need to find the number of unique k-diff pairs in the array. Here a k-diff pair is defined as an integer pair (i, j), where i and j原创 2017-07-14 11:05:56 · 217 阅读 · 0 评论 -
198. House Robber
题目来源【Leetcode】 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 distinct ways can you climb to the top?Note: Given n will原创 2017-07-14 11:59:00 · 146 阅读 · 0 评论 -
70. Climbing Stairs
题目来源【Leetcode】 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 distinct ways can you climb to the top? Note:原创 2017-07-14 15:53:32 · 153 阅读 · 0 评论 -
303. Range Sum Query - Immutable
题目来源【Leetcode】 Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Given nums = [-2, 0, 3, -5, 2, -1] sumRange(0, 2) -> 1 su原创 2017-07-15 08:29:13 · 161 阅读 · 0 评论