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 · 346 阅读 · 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 · 322 阅读 · 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 · 270 阅读 · 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 · 781 阅读 · 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 · 349 阅读 · 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 · 304 阅读 · 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 · 454 阅读 · 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 · 618 阅读 · 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 · 465 阅读 · 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 · 825 阅读 · 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 · 736 阅读 · 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 · 233 阅读 · 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 · 3180 阅读 · 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 · 263 阅读 · 0 评论
分享