K Closest Points to Origin
Given a list of points, return the k closest points to the origin (0, 0).
Given a list of points, return the k closest points to the origin (0, 0).
Given an array of integers, nums, and a value k, return the kth largest element.
High school students are voting for their class president and you're tasked with counting the votes. Each presidential candidate is represented by a unique integer and the candidate that should win the election is the candidate that has received more than half the votes. Given a list of integers, return the candidate that should become the class president.