## Minimum number of integers required to fill the NxM grid

Given a grid of size (NxM) is to be filled with integers. Filling of cells in the grid should be done in the following manner:… 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 grid of size (NxM) is to be filled with integers. Filling of cells in the grid should be done in the following manner:… Read More »

Given the position of a Bishop and a Pawn on a 8 * 8 chessboard, the task is to check whether the Bishop can take… Read More »

Given two concentric circles with radius X and Y where (X > Y). Find the area between them. You are required to find the area… Read More »

Given two numbers and . Find the values of X and Y in the equations. A = X + Y B = X xor Y… Read More »

Given two numbers A and B ( A and B can be up to 106 ) which forms a number N = (A!/B!). The task… Read More »

Given task is to find the value of x for a given y of an unknown function y = f(x) where values of some points… Read More »

Given two segments [L1, R1] and [L2, R2], the task is to choose two elements x and y from both the ranges (one from range… Read More »

Given three integers N, X and Y, the task is to find the minimum integer that should be added to X to make it at… Read More »

Given N points in 2 dimensional space. The task is to count the number of triplets pairs (A, B, C) such that point B is… Read More »

Given a string str, containing upper case and lower case characters. In a single operations, any lowercase character can be converted to an uppercase character… Read More »

Given a string str containing lower case alphabets and character ‘?’. The task is to check if it is possible to make str good or… Read More »

Given an array arr[] of positive distinct integers, two players A and B are playing a game. At each move, a player selects two numbers… Read More »

Given an array arr[] of integers, the task is to find the element (other than 1) which is the factor of maximum number of elements… Read More »

Given two positive integers N and M, the task is to find the smallest positive integer which is divisible by N and whose digit sum… Read More »

Given an N * M grid. It contains exactly three ‘*’ and every other cell is a ‘.’ where ‘*’ denotes a vertex of a… Read More »