Intersection of Two ArraysGiven two arrays, write a function to compute their intersect...
![240](https://cdn2.jianshu.io/assets/default_avatar/8-a356878e44b45ab268a3b0bbaaadeeb7.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)
Intersection of Two ArraysGiven two arrays, write a function to compute their intersect...
LRU Cache = LC: 146 Have Practiced: 0Design and implement a data structure for Least Re...
First Unique Number In Stream LC:387 A follow-up of 2018-10-19 First Unique Character i...
Ugly Number II LC: 264Ugly number is a number that only have factors 2, 3 and 5. Design...
Implement Queue by Two StacksLC: 232Similar problem: Implement Stack by Two Queues [E] ...
Merge K Sorted ListsMerge k sorted linked lists and return it as one sorted list.LC: 23...
Top k Largest Numbers Similar to K closest points, so no notes for this problem. Given ...
K Closest PointsGiven some points and an origin point in two-dimensional space, find k ...
Import module Random Insert Delete GetRandom O(1) [M] Heapq K Closest Points [M] Play w...
Insert Delete GetRandom O(1)Design a data structure that supports all following operati...
First Unique Character in a StringLC 387Find the first unique character in a given stri...
Implement Stack by Two QueuesImplement a stack by two queues. The queue is first in fir...
Moving Average from Data StreamLC: 346Given a stream of integers and a window size, cal...
Serialize and Deserialize Binary TreeLC: 297Design an algorithm and write code to seria...