## Minimum array insertions required to make consecutive difference <= K

Given an integer array H which represents heights of buildings and an integer K. The task is to reach the last building from the first… Read More »

- Spanning Tree With Maximum Degree (Using Kruskal's Algorithm)
- Optimal File Merge Patterns
- Find Intersection of all Intervals
- Given count of digits 1, 2, 3, 4, find the maximum sum possible
- Find the maximum possible value of a[i] % a[j] over all pairs of i and j
- Maximum number of candies that can be bought
- Minimum number of pairs required to make two strings same
- Split the given array into K sub-arrays such that maximum sum of all sub arrays is minimum
- Greedy approach vs Dynamic programming
- Minimum elements to be removed such that sum of adjacent elements is always odd
- Minimum operations to make frequency of all characters equal K
- Minimum cuts required to convert a palindromic string to a different palindromic string
- Maximum distance between two unequal elements
- Check whether a subsequence exists with sum equal to k if arr[i]> 2*arr[i-1]
- Count common elements in two arrays containing multiples of N and M
- Find the minimum number of steps to reach M from N
- Count all possible N digit numbers that satisfy the given condition
- Maximal Disjoint Intervals
- Find smallest number K such that K % p = 0 and q % K = 0
- Divide a number into two parts
- Count possible moves in the given direction in a grid
- Find the sum of digits of a number at even and odd places
- Minimum LCM and GCD possible among all possible sub-arrays
- Find n positive integers that satisfy the given equations
- Create a Sorted Array Using Binary Search
- Find the Kth smallest element in the sorted generated array
- Count the pairs of vowels in the given string
- Find minimum length sub-array which has given sub-sequence in it
- Maximize the value of the given expression
- Minimum deletions required to make GCD of the array equal to 1

Given an integer array H which represents heights of buildings and an integer K. The task is to reach the last building from the first… Read More »

Given integers N, P and Q where N denotes the destination position. The task is to move from position 0 to position N with minimum… Read More »

Given an integer element ‘N’, the task is to find the minimum number of operations that need to be performed to make ‘N’ equal to… Read More »

Given two sequences of integers ‘A’ and ‘B’, and an integer ‘k’. The task is to check if we can make both sequences equal by… Read More »

Given an integer . The task is to find another interger which is permutation of n, divisible by 3 but not divisible by 6. Given… Read More »

Given a two dimensional matrix A of zero’s and one’s and an integer K. In each move, you can choose any row or column and… Read More »

Given a list of prices of ‘N’ items. A person can buy only one item of any price and he can get other items for… Read More »

Given an array of n integers, we can remove one element of the array by the following operation. Operation:We select any two numbers of the… Read More »

Given an array of N integers, you have to select all of these integers in any order. For every integer you select, you get points… Read More »

Given an array of N integers, rearrange the array elements such that the next array element is greater than the previous element ( > ).… Read More »

Given a list of items and their values. The task is to find k items with the lowest value. It is possible that two items… Read More »

Given an array of integers, find the k smallest numbers after deleting given elements. In case of repeating elements delete only one instance in the… Read More »

Given an array containing weights of gifts, and an integer K representing maximum weight a box can contain (All boxes are uniform). Each box carries… Read More »

Given an array of integers, find the largest number after deleting the given elements. In case of repeating elements, delete one instance for every instance… Read More »

Given a number represented in the form of an array such that each element of the array stores a single digit of the number. That… Read More »