
LeetCode刷题记录。
文章平均质量分 74
summerdream_
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode-96. Unique Binary Search Trees
题目: Given n, how many structurally unique BST's (binary search trees) that store values 1...n? For example, Given n = 3, there are a total of 5 unique BST's. 1 3 3 2 1原创 2017-10-07 10:25:47 · 241 阅读 · 0 评论 -
LeetCode 486.Predict the Winner
Given an array of scores that are non-negative integers. Player 1 picks one of the numbers from either end of the array followed by the player 2 and then player 1 and so on. Each time a player picks a原创 2017-10-15 15:22:46 · 288 阅读 · 0 评论 -
Leetcode_76. Minimum Window Substring
Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only and the length of both strings s and p will not be lar原创 2017-11-17 19:27:47 · 210 阅读 · 0 评论 -
Leetcode438. Find All Anagrams in a String
Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only and the length of both strings s and p will not be lar原创 2017-11-17 19:12:08 · 238 阅读 · 0 评论 -
LeetCode11. Container With Most Water
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Fin原创 2017-11-16 21:06:02 · 201 阅读 · 0 评论 -
Leetcode 300. Longest Increasing Subsequence
Given an unsorted array of integers, find the length of longest increasing subsequence.For example,Given [10, 9, 2, 5, 3, 7, 101, 18],The longest increasing subsequence is [2, 3, 7, 101], therefore th...原创 2017-11-24 19:44:53 · 218 阅读 · 0 评论 -
Leetcode 789. Escape The Ghosts
You are playing a simplified Pacman game. You start at the point (0, 0), and your destination is (target[0], target[1]). There are several ghosts on the map, the i-th ghost starts at (ghosts[i][0], gh...原创 2018-03-31 10:16:56 · 253 阅读 · 0 评论