## Find the number of jumps to reach X in the number line from zero

Given an integers X. The task is to find the number of jumps to reach a point X in the number line starting from zero.… Read More »

- Minimum deletions required to make frequency of each letter unique
- Lexicographically smallest string of length N and sum K
- Minimum increment operations to make K elements equal
- Check if string can be rearranged so that every Odd length Substring is Palindrome
- Count total number of even sum sequences
- Minimum cost to convert str1 to str2 with the given operations
- Minimum halls required for class scheduling
- Count of numbers in the range [L, R] which satisfy the given conditions
- Minimum element left from the array after performing given operations
- Find the minimum capacity of the train required to hold the passengers
- Find permutation with maximum remainder Sum
- Find numbers which are multiples of first array and factors of second array
- Find the minimum value of X for an expression
- Minimum steps required to reduce all the elements of the array to zero
- Minimum length String with Sum of the alphabetical values of the characters equal to N
- Random list of M non-negative integers whose sum is N

Given an integers X. The task is to find the number of jumps to reach a point X in the number line starting from zero.… Read More »

Given an array arr[] of size n where arr[i] is the amount of candies of type i. You have unlimited amount of money. The task… Read More »

Given an array arr[] of n integers and an integer k. The task is to maximize the sum of the array after performing the given… Read More »

Given an undirected unweighted connected graph consisting of n vertices and m edges. The task is to find any spanning tree of this graph such… Read More »

Given a set of N intervals, the task is to find the maximal set of mutually disjoint intervals. Two intervals [i, j] & [k, l]… Read More »

Given the count of digits 1, 2, 3, 4. Using these digits you are allowed to only form numbers 234 and 12. The task is… Read More »

Given an array of positive and negative elements. The task is to replace every i-th element of the array by the absolute difference of absolute… Read More »

Given n number of sorted files, the task is to find the minimum computations done to reach Optimal Merge Pattern. When two or more sorted… Read More »

Given three non-zero integers a, b and c. The task is to find the maximum value possible by putting addition and multiplication signs between them… Read More »

Given palindromic string s, the task is to find minimum k, such that you can cut this string into k+1 parts, and then unite them… Read More »

Given a binary string str. In a single operation, we can change any ‘1’ to ‘0’ or any ‘0’ to ‘1’. The task is to… Read More »

Given three integers a, b and N. Find the total number of distinct pairs which can be formed by selecting one integer from 1 to… Read More »

Given two numbers N and P. The task is to generate an array of all positive elements, and in one operation you can choose a… Read More »

Given a string str, the task is to encrypt the string with the given encryption algorithm. The 1st character of the string will be repeated… Read More »

Given two integers p and q, the task is to find the smallest number K such that K % p = 0 and q %… Read More »