Problem Statement: You are the manager of a basketball team. For the upcoming tournament, you want to choose the team […]
Problem Statement Imagine you have a collection of N wines placed next to each other on a shelf. For simplicity, let us […]
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, […]
Problem Statement Given a list of non-overlapping intervals, insert a given interval at the correct position and merge all necessary intervals to […]
Problem Statement Given a list of intervals, merge all the overlapping intervals to produce a list that has only mutually exclusive intervals. […]
Problem Statement Given an array, find the length of the smallest subarray in the given array which when sorted will […]