# LeetCode 973. K Closest Points to Origin

Description https://leetcode.com/problems/missing-ranges/ We have a list of points on the plane. Find the K closest points to the origin (0, 0). (Here, the distance between…

Be a Good Techer and Tech for Good. www.goodtecher.com

Description https://leetcode.com/problems/missing-ranges/ We have a list of points on the plane. Find the K closest points to the origin (0, 0). (Here, the distance between…

Description https://leetcode.com/problems/missing-ranges/ Given a sorted integer array nums, where the range of elements are in the inclusive range [lower, upper], return its missing ranges.…

Description https://leetcode.com/problems/majority-element/ Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊…

Description https://leetcode.com/problems/sort-colors/ Given an array with n objects colored red, white or blue, sort them in-place so that objects of the same color are…

Description https://leetcode.com/problems/permutations/ Given a collection of distinct integers, return all possible permutations. Example: Input: [1,2,3] Output: [ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2],…

Description https://leetcode.com/problems/top-k-frequent-elements/ Given a non-empty array of integers, return the k most frequent elements. Example 1: Input: nums = [1,1,1,2,2,3], k =…

Description https://leetcode.com/problems/kth-largest-element-in-an-array/ Find the kth largest element in an unsorted array. Note that it is the kth largest element in the…

Description https://leetcode.com/problems/increasing-triplet-subsequence/ Given an unsorted array return whether an increasing subsequence of length 3 exists or not in the array.…

Description https://leetcode.com/problems/set-matrix-zeroes/ Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in-place. Example…

Description https://leetcode.com/problems/subarray-sum-equals-k/ Given an array of integers and an integer k, you need to find the total number of continuous subarrays…