Hard
weixin_39145266
这个作者很懒,什么都没留下…
展开
-
41 First Missing Positive
Given an unsorted integer array, find the smallest missingpositive integer.Example 1:Input: [1,2,0]Output: 3Example 2:Input: [3,4,-1,1]Output: 2Example 3:Input: [7,8,9,11,12]Output:...原创 2020-01-06 11:03:15 · 128 阅读 · 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 · 64 阅读 · 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 · 81 阅读 · 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 · 160 阅读 · 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 · 74 阅读 · 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 · 52 阅读 · 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 · 63 阅读 · 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 · 129 阅读 · 0 评论