Problem Statement Given an array, find the length of the smallest subarray in the given array which when sorted will […]
Problem Statement Given an array of unsorted numbers and a range [a, b], find total number of triplets in it that […]
Problem Statement Given an array of unsorted numbers and an integer target, find total number of triplets in it that add […]
Problem Statement Given an array of sorted numbers, Square each number and arrange their squares in sorted order. Example: Input1: […]
Problem Statement Given an array of unsorted numbers, find all unique triplets in it that add up to zero. Example: Input1: […]
Problem Statement Given an array containing 0’s, 1’s and 2’s, Sort the array inplace. You can’t count the frequency of […]
Problem Statement Given an array of unsorted numbers and a target, remove all occurances of target from it. After removing target […]
Problem Statement Given an array of sorted numbers, remove all duplicates from it. After removing the duplicates in-place return the new […]
Problem Statement Given an array of sorted numbers and a target sum, find a pair in the array whose sum is […]