- 博客(5)
- 收藏
- 关注
原创 Leetcode 718 Maximum Length of Repeated Subarray
Given two integer arrays A and B, return the maximum length of an subarray that appears in both arrays.Example 1: Input: A: [1,2,3,2,1] B: [3,2,1,4,7] Output: 3 Explanation: The repeated subarra
2017-11-29 23:55:46 148
原创 Leetcode406 Queue Reconstruction by Height
Suppose you have a random list of people standing in a queue. Each person is described by a pair of integers (h, k), where h is the height of the person and k is the number of people in front of this p
2017-11-17 14:55:57 204
原创 leetcode 392 Is Subsequence
Given a string s and a string t, check if s is subsequence of t.You may assume that there is only lower case English letters in both s and t. t is potentially a very long (length ~= 500,000) string, an
2017-11-16 18:41:12 220
原创 leetcode 169 Majority Element
题目描述: Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.You may assume that the array is non-empty and the majority element
2017-11-09 19:55:33 228
原创 leetcode 207 Course Schedule
题目描述 There are a total of n courses you have to take, labeled from 0 to n - 1.Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as
2017-11-03 16:07:57 193
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人