Identify the Level
Amin and Belal are two friends. Both have good knowledge about graph and tree in data structure part...
Plant Trees, Save Life
There are n students in a school. Some of them are friends with each other. You want to make the sch...
COVID-19 Outbreak
COVID-19 outbreak in Atlantis is so bad that the government is forced to lock down the whole country...
Traveling Policy of Ajobdesh
In Ajobdesh, there are multiple cities and one of them is considered as the capital city. Obviously,...
A Boring Game
Alice and Bob are playing a game with a tree with n nodes. Alice always plays first, and the two pla...
Keep Moving
Balurmath is a city which has N interesting tourist spots, which are connected between themselves by...
Taofiq the House Prefect
Tomorrow is a very special day for Taofiq. He is participating in an intra school quiz contest. As h...
MEXimum
Let’s get straight to the point. You are given a tree. In the tree, each node u has a number au​ ass...
Set the Meeting
Three colleagues Motu, Biscuit and Ramjan are in Sundarbans now. They are on a mission to protect th...
Tree Queries
You are given a tree of n vertices. Each vertex contains an integer. Vertex 1 is the root of the tre...
Concatenation of Perfect Squares
You are given a positive integer number. You have to determine whether this number can be represente...
Sayadpur City
Bob wants to visit a new country called sayadpur. There are N cities (1,2,3,…,N) in sayadpur, and th...
Sofdor Ali's Black and White Tree
Sofdor Ali loves Computer Science. He prefers hexadecimal number system to decimals, just because it...
Scarlet Speedster
The scarlet speedster of Central City, popularly known as the Flash is fighting an epic battle again...
Tahsin and Tree
Tahsin loves graph theory very much. He is especially fond of trees. For his upcoming birthday his f...
Shortest Path?
Given an unweighted, undirected and connected graph consists of $N$ nodes numbered from $1$ to $N$. ...
Road Minister Techboy
Techboy is appointed as the minister of roads and highway in his country Better-Not-Name-It. Now he ...
Yet Another XOR Problem
Given a rooted tree with N nodes where each node has a value, find a pair of nodes (u, v) so that u ...
Gold Mines
The city of gridland is a grid with n rows and m columns. The city can be divided into n*m cells. A ...
DFS, Graph Moderate 53/68/260
Darth Vader and 3PO on a Tree!
Did you watch Star Wars yet? No? You should in your free time. Now back to Darth Vader and 3PO. Dart...
Milad's Lost Tree
Milad likes trees so much. He has a rooted tree with $n$ vertices each of which has some non-negativ...
Scary Tree
Recently Alex has been learning about the tree data structure. And, he has been struggling to write ...
Life Saving Algorithm
Recently flood has vastly affected some regions of the country. So many people are helpless and suff...
Change Queries
Today is a very special day for Rubel. Recently he got a job in a software company. Now today is the...
Memes vs. Social Media
In this era of modern technology social media is the most powerful weapon and the viral issue is the...
Toph uses cookies. By continuing you agree to our Cookie Policy.