
LeetCode
文章平均质量分 87
AzureoSky
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode 312. Burst Balloons
一、题目描述Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented by array nums. You are asked to burst all the balloons. If the you burst balloon i you will get...原创 2018-09-09 18:43:05 · 334 阅读 · 0 评论 -
LeetCode 741. Cherry Pickup
一、题目描述In a N x N grid representing a field of cherries, each cell is one of three possible integers.0 means the cell is empty, so you can pass through;1 means the cell contains a cherry, that you ...原创 2018-11-30 01:51:45 · 298 阅读 · 0 评论 -
LeetCode 354. Russian Doll Envelopes
一、题目描述You have a number of envelopes with widths and heights given as a pair of integers (w, h). One envelope can fit into another if and only if both the width and height of one envelope is greater ...原创 2018-11-25 16:24:42 · 244 阅读 · 0 评论 -
LeetCode 879. Profitable Schemes
一、题目描述There are G people in a gang, and a list of various crimes they could commit.The i-th crime generates a profit[i] and requires group[i] gang members to participate.If a gang member participat...原创 2018-11-15 23:00:18 · 758 阅读 · 0 评论 -
LeetCode 818. Race Car
一、题目描述Your car starts at position 0 and speed +1 on an infinite number line. (Your car can go into negative positions.)Your car drives automatically according to a sequence of instructions A (accel...原创 2018-11-11 12:33:03 · 331 阅读 · 0 评论 -
LeetCode 902. Numbers At Most N Given Digit Set
一、题目描述We have a sorted set of digits D, a non-empty subset of {'1','2','3','4','5','6','7','8','9'}. (Note that '0' is not included.)Now, we write numbers using these digits, using each digit as ma...原创 2018-11-04 12:35:46 · 266 阅读 · 0 评论 -
LeetCode 887. Super Egg Drop
一、题目描述You are given K eggs, and you have access to a building with N floors from 1 to N.Each egg is identical in function, and if an egg breaks, you cannot drop it again.You know that there exists ...原创 2018-10-27 23:25:13 · 426 阅读 · 0 评论 -
LeetCode 757. Set Intersection Size At Least Two
一、题目描述An integer interval [a, b] (for integers a < b) is a set of all consecutive integers from a to b, including a and b.Find the minimum size of a set S such that for every integer interval A i...原创 2018-10-21 17:44:46 · 576 阅读 · 0 评论 -
LeetCode 514. Freedom Trail
一、题目描述In the video game Fallout 4, the quest “Road to Freedom” requires players to reach a metal dial called the “Freedom Trail Ring”, and use the dial to spell a specific keyword in order to open th...原创 2018-10-14 21:58:21 · 434 阅读 · 0 评论 -
LeetCode 854. K-Similar Strings
一、题目描述Strings A and B are K-similar (for some non-negative integer K) if we can swap the positions of two letters in A exactly K times so that the resulting string equals B.Given two anagrams A and ...原创 2018-09-28 22:01:39 · 804 阅读 · 0 评论 -
LeetCode 839. Similar String Groups
一、题目描述Two strings X and Y are similar if we can swap two letters (in different positions) of X, so that it equals Y.For example, "tars" and "rats" are similar (swapping at positions 0 and 2), and "r...原创 2018-10-07 17:35:43 · 709 阅读 · 0 评论 -
LeetCode 329. Longest Increasing Path in a Matrix
一、题目描述Given an integer matrix, find the length of the longest increasing path.From each cell, you can either move to four directions: left, right, up or down. You may NOT move diagonally or move out...原创 2018-09-21 22:09:02 · 209 阅读 · 0 评论 -
LeetCode 903. Valid Permutations for DI Sequence
一、题目描述We are given S, a length n string of characters from the set {'D', 'I'}. (These letters stand for “decreasing” and “increasing”.)A valid permutation is a permutation P[0], P[1], ..., P[n] of...原创 2018-09-16 14:10:08 · 3153 阅读 · 0 评论 -
LeetCode 730. Count Different Palindromic Subsequences
一、题目描述Given a string S, find the number of different non-empty palindromic subsequences in S, and return that number modulo 10^9 + 7.A subsequence of a string S is obtained by deleting 0 or more cha...原创 2018-12-08 01:35:39 · 242 阅读 · 0 评论