The Mughal Emperor
You all must’ve heard the name of the emperor Humayun Mirza. He was a very kind human being. But thi...
Circle of Death
Abir is a school going boy, who loves math. Also, he loves to play with stones. Recently he invented...
Building Boundaries
Maarja wants to buy a rectangular piece of land and then construct three buildings on that land. The...
Khataraina is Back!
Last year we helped Adnan with his girlfriend Khataraina’s issue. This year she caused another troub...
Blanket
You have a suitcase with length X, width Y and height Z. You also have a very comfortable blanket. I...
Recursive Function
A common example of recursion goes something like this: long long recur(int x){ if (x==0){ return X0...
Cocoa Coalition
Alice and Bob decide to share a chocolate bar, which is an $n$ by $m$ rectangular grid of chocolate ...
Math Moderate 32/43/240
Nodes and Depth
From the above figure, the number of nodes for the first three depths are 3, 9, and 27. You will b...
Arunima City
After the big decentralization process, where Dhaka city's population were relocated, a new city cal...
Arko and Special Permutations
Arko is very fond of permutations. He can easily calculate the number of n length permutations. (In ...
Killing Floor
$N (1 \leq N \leq 10^{18})$ robots have decided to take part on a battle royale. Every robot has a u...
The Lucky Dice
Ray and Evangeline are playing a game named "The Lucky Dice". In this game, each player tosses up an...
Lazy Supermen
There are two hills in Sonargaon. The heights of them are H1 and H2 meter. The distance between the ...
Calendar of Planet Biku
Mr. Hikiko is the emperor of a planet called Biku. He got a gift from planet earth which can count t...
Find the Number of Pearls
Today is a very special day. It’s the birthday of only one girlfriend of programmer Shojib. Now, you...
Maximum Distance
You know it’s hard seeing your favorite person being interested in another one instead of you. At th...
MEXFN
This is a straightforward problem without much story behind the problem. You have to calculate MEXF...
Recursive World!
See following the two recursive functions: C(0) = 0 C(1) = 5 C(K) = C(K-1) + 4 F(0) = 1 F(1) = 2 F(N...
Erik: The Candyboy - 1
Erik has N candies, and he wants to distribute those candies among his friends. But he has more frie...
Gutibaji on Chessboard
Let there be a chessboard of size N×M, and only one bishop in a cell (x,y). How many cells can the b...
Vox Populi
Asfia's daughter just turned 5. She is looking for a school to get her admitted. Like every other pa...
The Matrix
In the metaphysical world of the Matrix, different people make their chessboards with their own spec...
Learning New Algorithms Every Day
Shak is a new programmer and he knows nothing about algorithms. He has made a plan and decided to le...
Playing With Your Mind
Given a non-negative integers N. You have to find an integer P such that, the following conditions s...
Expected Values From Bubble Sort
Bubble sort is a sorting algorithm that can sort an array of numbers in increasing order. In each of...
Toph uses cookies. By continuing you agree to our Cookie Policy.