## Maximum score after flipping a Binary Matrix atmost K times

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 »

- 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 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 word containing vowels and consonants. The task is to find that in how many different ways word can be arranged so that the… Read More »

Given two integers and . The task is to find the maximum value of x, such that, n! % (k^x) = 0. Examples: Input :… Read More »

Given an array A[] of integers. The task is to return the sum of the width of all subsequences of A. For any sequence S,… Read More »

Given four integers n, w, m and k where, m is the total number of men. w is the total number of women. n is… Read More »

Given an array of n elements. The task is to print the maximum sum by selecting two subsequences of the array (not necessarily different) such… Read More »

Given an integer ‘n’, the task is to check whether the sum of digits at the odd positions (from right to left) is prime or… Read More »

Given a number . The task is to find the value of the below expression for the given value of . Examples: Input: X =… Read More »

Given an integer ‘k’ and an array of integers ‘arr’ (less than 10^6), the task is to find the product of every K’th prime number… Read More »

You are given a container of X liters containing a mixture of wine and water. The mixture contains W% of water in it. How much… Read More »

Given an Grid of integers. The task is to find total numbers of 3 x 3 (contiguous) Magic Square subgrids in the given grid. A… Read More »

Given a number print the immediate smallest number formed by re-arranging the digits of a given number. Print “Not Possible” if it is not possible… Read More »

Given a number check whether it is a mystery number or not. A mystery number is that number which can be expressed as sum of… Read More »

Given an positive integer N, calculate the product of the first N prime numbers. Examples: Input : N = 3 Output : 30 Explanation :… Read More »

Given an array of integers. Replace every element by the product of all other elements of the array. Examples: Input : arr[] = { 2,… Read More »