Problem Statement Given an array of unsorted numbers and a target number, find a triplet in the array whose sum is...
Tag: array
Problem Statement Given an array of sorted numbers, remove all duplicates from it. You should not use any extra space; after removing the...
Problem Statement Given a sorted array, create a new array containing squares of all the number of the input array in the...
Problem Statement Given an array of sorted numbers and a target sum, find a pair in the array whose sum is...
Problem Statement Given a string, find the length of the longest substring in it with no more than K distinct characters. Example 1: ...