- 博客(7)
- 资源 (1)
- 收藏
- 关注
原创 Leetcode 063. Unique Paths II
https://leetcode.com/problems/unique-paths-ii/description/题目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 r...
2018-10-27 01:21:47 190
原创 Leetcode 134. Gas Station
题目There are N gas stations along a circular route, where the amount of gas at station i is gas[i].You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to it...
2018-10-17 21:22:44 204
原创 Leetcode 55. Jump Game
题目Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that position.Determine if y...
2018-10-17 09:33:22 386
原创 Leetcode 279. Perfect Squares
题目Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, …) which sum to n.Example 1:Input: n = 12Output: 3 Explanation: 12 = 4 + 4 + 4.Example 2...
2018-10-16 15:29:04 175
原创 Leetcode 130. Surrounded Regions
题目Given a 2D board containing 'X' and'O'(the letter O), capture all regions surrounded by 'X'.A region is captured by flipping all 'O's into 'X's in that surrounded region.Example:X X X XX O O X...
2018-10-14 23:51:26 241
原创 Leetcode 200. Number of Islands
题目Given a 2d grid map of '1's (land) and'0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assu...
2018-10-14 22:55:54 185
原创 Leetcode 310. Minimum Height Trees
For a undirected graph with tree characteristics, we can choose any node as the root. The result graph is then a rooted tree. Among all possible rooted trees, those with minimum height are called mini...
2018-10-07 22:24:44 223
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人