Poltu and Graph
Poltu has got a graph with N nodes and M edges. Every edge has a weight. There can be multiple edges...
Memes vs. Social Media
In this era of modern technology social media is the most powerful weapon and the viral issue is the...
Mad Engineer Aksir
Can you imagine? Mad Engineer Aksir finally got the job. His job is to set up toggle switch for a se...
Static Tree
You are given a tree containing N vertices. The vertices are numbered from 1 to N. A tree with N ver...
Dynamic Tree
You are given a tree containing N vertices. The vertices are numbered from 1 to N. A tree with N ver...
Composite Facts
Let's define two functions F and S: F(n) = 1 + n! S(n,m) = Sum of first m non-prime integers which ...
Jenga Tower
Maybe you all are familiar with Jenga Game. "Jenga is played with 54 wooden blocks. Each block is th...
MSIS!
Do you know what MSIS is? MSIS is the abbreviation for Maximum Sum Increasing Subsequence. It is a s...
City of Burgerland
Have you ever heard of The Burgerland City? The city is full of burger shops. You will surely find s...
Restore Missing Values
Consider an array of 'N' integers which is indexed from '1' to 'N'. Exactly 'Q' queries numbered fr...
Jontrona of Liakot
Liakot, the king of Cox's Bazar, is currently in a dire situation. His own younger sister Ayesha is ...
MEXFN
This is a straightforward problem without much story behind the problem. You have to calculate MEXF...
Toph uses cookies. By continuing you agree to our Cookie Policy.