Problems by Peregrine_Falcon

Collectors Problem
The Bat club controls Gotham City. They decided to bring equality to the city (Of course, with some ...
Count Bridges
You are given an unweighted, undirected, and connected graph consisting of N nodes and M edges. You ...
Moderate 4/6/17
COVID-19 Outbreak
COVID-19 outbreak in Atlantis is so bad that the government is forced to lock down the whole country...
BFS, DFS, DP Moderate 158/192/528
Equalizing Pillars
There are $N$ pillars made of bricks. The height of each pillar is the number of bricks in that pill...
Moderate 20/41/183
Good and Evil
Inside each of us, there is the seed of both good and evil. It's a constant struggle as to which on...
Moderate 13/19/58
Hidden Graph
There is an unweighted, undirected hidden graph. You are given an integer range from L to R. There a...
How Many Shortest Paths?
You are given a $Directed$ $Acyclic$ $Graph$ consists of $N$ nodes and $M$ edges. A little bug is cu...
Moderate 23/35/177
Land of Riches
Mankind has recently discovered the secret wealth in Mars. Many powerful countries are trying to get...
Moderate 12/16/52
Make Strings Great Again!
Do you know what is a sub-sequence? A sub-sequence is a sequence that can be derived from another se...
DP Moderate 33/47/150
Matrix Resurrection
We have a two-dimensional matrix consisting of N rows and M columns. The rows are numbered from 1 to...
Moderate 11/20/73
Multiverse Of Courier Service
Dr. Strange finally discovered a safe way to travel between parallel universes. By noticing people’s...
Path Intersection Extended
Do you remember the problem from ICPC Dhaka Regional 2018 named $Path$ $Intersection$ by Md. Imran B...
Pile of Crabs
There is a pile of crabs standing on one top of another. There are total N crabs numbered 1 to N. T...
Moderate 40/51/80
Preparing for War
There were N cities in England. Each contained a warrior with skillset equal to X. All the cities we...
Seven Kingdoms!
The dragon queen just conquered the Seven Kingdoms. Initially there are N cities in "Seven Kingdoms"...
Shortest Path?
Given an unweighted, undirected and connected graph consists of $N$ nodes numbered from $1$ to $N$. ...
BFS Moderate 58/67/177
Shortest Sub-Array
You are given an array $A$ consists of $N$ elements. You have to perform $Q$ queries on the array. ...
Moderate 38/52/223
Water in a Tree
There is a tree consist of N nodes and N−1 edges. The ith node contains Si​ liters of water with a t...
Toph uses cookies. By continuing you agree to our Cookie Policy.