2019年3月12日

303. Range Sum Query - Immutable(数组区间和)

摘要: Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Note: 求区间 i ~ j 的和,可以转换为 sum[j + 1] - s 阅读全文

posted @ 2019-03-12 23:46 shaer 阅读(99) 评论(0) 推荐(0) 编辑

62. Unique Paths(矩阵的总路径数)

摘要: A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p 阅读全文

posted @ 2019-03-12 23:22 shaer 阅读(240) 评论(0) 推荐(0) 编辑

61. Rotate List(旋转表)

摘要: Given a linked list, rotate the list to the right by k places, where k is non-negative. Example 1: Example 2: 阅读全文

posted @ 2019-03-12 22:00 shaer 阅读(124) 评论(0) 推荐(0) 编辑

64. Minimum Path Sum(最短路径)

摘要: Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. 阅读全文

posted @ 2019-03-12 21:27 shaer 阅读(123) 评论(0) 推荐(0) 编辑

213. House Robber II(强盗抢劫2)(leetcode)

摘要: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All houses at this place are ar 阅读全文

posted @ 2019-03-12 19:30 shaer 阅读(139) 评论(0) 推荐(0) 编辑

198. House Robber(强盗抢劫)(LeetCode)

摘要: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping yo 阅读全文

posted @ 2019-03-12 18:04 shaer 阅读(214) 评论(0) 推荐(0) 编辑

导航