Hard
weixin_39145266
这个作者很懒,什么都没留下…
展开
-
41 First Missing Positive
Given an unsorted integer array, find the smallest missingpositive integer. Example 1: Input: [1,2,0] Output: 3 Example 2: Input: [3,4,-1,1] Output: 2 Example 3: Input: [7,8,9,11,12] Output:...原创 2020-01-06 11:03:15 · 137 阅读 · 0 评论 -
295 Find Median from Data Stream
1 题目 Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two middle value. For example, [2,3,4], the m...原创 2019-12-05 12:12:19 · 74 阅读 · 0 评论 -
759 Employee Free Time
1 题目 We are given a listscheduleof employees, which represents the working time for each employee. Each employee has a list of non-overlappingIntervals, and these intervals are in sorted order. ...原创 2019-12-05 10:19:37 · 98 阅读 · 0 评论 -
269 Alien Dictionary
1题目 There is a new alien language which uses the latin alphabet. However, the order among letters are unknown to you. You receive a list ofnon-emptywords from the dictionary, wherewords are sorte...原创 2019-12-04 12:39:07 · 170 阅读 · 0 评论 -
146 LRU Cache
1 题目 Design and implement a data structure forLeast Recently Used (LRU) cache. It should support the following operations:getandput. get(key)- Get the value (will always be positive) of the key...原创 2019-12-03 09:45:09 · 82 阅读 · 0 评论 -
45 Jump Game II
1 题目 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. Your goal...原创 2019-10-01 08:52:53 · 57 阅读 · 0 评论 -
980 Unique Paths III
1 题目 On a 2-dimensionalgrid, there are 4 types of squares: 1represents the starting square. There is exactly one starting square. 2represents the ending square. There is exactly one ending squ...原创 2019-11-24 14:54:06 · 76 阅读 · 0 评论 -
1153 String Transforms Into Another String
1 题目 Given two stringsstr1andstr2of the same length, determine whether you can transformstr1intostr2by doingzero or moreconversions. In one conversion you can convertalloccurrences of on...原创 2019-10-31 14:17:52 · 160 阅读 · 0 评论