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 2/4/15
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 146/177/493
Equalizing Pillars
There are $N$ pillars made of bricks. The height of each pillar is the number of bricks in that pill...
Moderate 19/40/182
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 11/17/55
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...
Land of Riches
Mankind has recently discovered the secret wealth in Mars. Many powerful countries are trying to get...
Moderate 10/14/50
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 28/41/119
Matrix Resurrection
We have a two-dimensional matrix consisting of N rows and M columns. The rows are numbered from 1 to...
Moderate 9/18/71
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 38/49/78
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 52/60/162
Shortest Sub-Array
You are given an array $A$ consists of $N$ elements. You have to perform $Q$ queries on the array. ...
Moderate 38/51/222
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...
Moderate 6/8/23
Toph uses cookies. By continuing you agree to our Cookie Policy.