Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.
Given a non-empty array of integers, return the k most frequent elements.
Given a list of points on the plane. Find the K closest points to the origin (0, 0). The distance between two points on a plane is the Euclidean Distance.
Let’s say we had a calendar for a four day week. The calendar is full of events, which each can span multiple days. Each color block represents an event:
Given an array of meeting time intervals intervals, return the minimum number of conference rooms required.