## Concentration of juice after mixing n glasses in equal proportion

Given an array arr[] where arr[i] is the concentration of juice in ith glass. The task is to find the concentration of the resultant mixture… Read More »

- Eggs dropping puzzle (Binomial Coefficient and Binary Search Solution)
- Maximum profit after buying and selling the stocks
- Program to find the Hidden Number
- Reach the numbers by making jumps of two given lengths
- Longest subarray having average greater than or equal to x
- Modular exponentiation (Recursive)
- Find the unit place digit of sum of N factorials
- Largest palindromic number in an array
- Make all numbers of an array equal
- Puzzle | Cut Blue Painted Cube
- Check if a number is perfect square without finding square root
- Check if a number can be expressed as a^b | Set 2
- Puzzle | Selling Chocolates
- A Sum Array Puzzle
- Sum of the first N Prime numbers
- Final cell position in the matrix
- Check if it is possible to reach a number by making jumps of two given length
- Probability that two persons will meet
- Program to find minimum number of lectures to attend to maintain 75%
- Sum of minimum elements of all subarrays
- Generate all rotations of a number
- Number of array elements derivable from D after performing certain operations
- Sum of the multiples of two numbers below N
- Number of quadrilaterals possible from the given points
- Check if a number is a Mystery Number
- Count number of triplets with product equal to given number with duplicates allowed
- Minimum number of sets with numbers less than Y
- Sum of all Primes in a given range using Sieve of Eratosthenes
- Minimum operations required to make all the array elements equal
- Find elements of array using XOR of consecutive elements

Given an array arr[] where arr[i] is the concentration of juice in ith glass. The task is to find the concentration of the resultant mixture… Read More »

Given an integer N. The task is to find the maximum possible sum of intermediate values (Including N and 1) attained after applying the beow… Read More »

Given three positive integers N, A and B. The task is to count the numbers of length N containing only digits A and B and… Read More »

Given an array arr[] of n integers and an integer k. The task is to make all the elements of arr[] equal with the given… Read More »

Given an array arr[] of integers. The task is to return the length of the maximum size sub-array such that either one of the condition… Read More »

Given a range [n, m], the task is to find the number of elements that have even number of factors in the given range (n… Read More »

Given two integers N and M which denote the number of persons of Type1 and Type2 respectively. The task is to find the maximum number… Read More »

Given an integer N. You can select any two digits from this number (the digits can be same but their positions should be different) and… Read More »

There are 6 persons seating on a round table in which two individual have the same names. What is the probability that the two same-named… Read More »

Given an integer M, an 8 * 8 chessboard and the king is placed on one of the square of the chessboard. Let the coordinate… Read More »

Given two positive integers N and M. The task is to find M-th number whose sum of digits of a number until sum becomes single… Read More »

Given an integer N, the task is to find out whether it can be written as a sum of 2 triangular numbers (which may or… Read More »

Given integers n, a, b and c, the task is to find the maximum value of x + y + z such that ax +… Read More »

Given two integers N and X. The task is to print the absolute difference between the first X and last X digits in N. Considering… Read More »

Given an array arr[], the task is to make all the array elements equal with the given operation. In a single operation, any element of… Read More »