Count all triplets with sum less than target in a given array x Problem Statement Given an array arr of unsorted numbers and a target sum, count all triplets in it such that arr+arr+arr...
Find unique triplet closest to target in an array x Problem Statement Given an array of unsorted numbers and a target number, find a triplet in the array whose sum is...
Find all triplets with sum zero in an array x Problem Statement Given an array of unsorted numbers, find all unique triplets in it that add up to zero. Example...
Find pair with target sum in given array x Problem Statement Given an array of sorted numbers and a target sum, find a pair in the array whose sum is...
Length of smallest subarray with a sum greater than or equal to S x Problem Statement Given an array of positive numbers and a positive number ‘S’, find the length of the smallest contiguous subarray...