Problem Statement Given a string and a number ‘K’, find if the string can be rearranged such that the same […]
Problem Statement Given a string s, rearrange the characters of s so that any two adjacent characters are not the same.Return any possible rearrangement […]
Problem Statement Given an array of points in a 2D plane, find ‘K’ closest points to the origin. Example: Input 1: points […]
Problem Statement Given an unsorted array of numbers, find Kth smallest number in it. Please note that it is the […]
Problem Statement Given an unsorted array of numbers, find the ‘K’ largest numbers in it. Example: Input 1: arr: [3, […]