Arrays-: By-Anushka Gupta
Arrays-: By-Anushka Gupta
Find maximum length sub-array having equal number of 0’s and 1’s
Sort an array containing 0’s, 1’s and 2’s (Dutch national flag problem)
Replace each element of array with product of every other element without using / operator
Find maximum difference between two elements in the array by satisfying given constraints
By-Anushka Gupta
Find all distinct combinations of given length with repetition allowed
Find maximum sequence of continuous 1’s formed by replacing at-most k zeroes by ones
Find the length of smallest subarray whose sum of elements is greater than the given number
Find the smallest window in array sorting which will make the entire array sorted
Maximum profit earned by buying and selling shares any number of times
Find minimum platforms needed in the station so to avoid any delay in arrival of any train
Length of longest continuous sequence with same sum in given binary arrays
Rearrange array such that A[A[i]] is set to i for every element A[i]
Find pairs with given difference k in the array | Constant space solution
By-Anushka Gupta
Find two odd occurring element in an array without using any extra space
Quickselect Algorithm
Replace each element of the array by its corresponding rank in the array
Print all Triplets in an array with sum less than or equal to given number
Find minimum difference between index of two given elements present in the array
Replace every element of an array with the least greater element on its right
Find all odd occurring elements in an array having limited range of elements
By-Anushka Gupta
Count the distinct absolute values in the sorted array
Print all combinations of positive integers in increasing order that sum to a given number
Find smallest range with at-least one element from each of the given lists
Merge Sort
Quicksort
By-Anushka Gupta
Iterative Implementation of Quicksort
Hybrid QuickSort
Custom Sort | Sort elements of the array by order of elements defined by the second array
Binary Search
Interpolation search
Exponential search
By-Anushka Gupta
Partition problem
Rod Cutting
Coin Change Problem (Total number of ways to get the denomination of coins)
Decode the given sequence to construct minimum number without repeated digits
3 Partition Problem
By-Anushka Gupta