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...

Flow on Tree

Mr. Kaboom has recently learned about maximum flow. Now his friend Mr. Taboom gave him this problem....

Kingdom - Great Roads of Destiny

Shin wants to be the “Great General of the Heaven”. It is his dream. But becoming a “Great General o...

Act of Random Kindness (Hard)

Sammy and Meera liked adventures a lot. Once in a while they used to set out adventures. This time t...

Flyover in Twinland

Rio has become the president of Twinland. Now he wants to develop his country to fulfill his promise...

C++ Vector Simulation

Array is an important data structure in computer science. It is also very important when it comes fo...

404 Setter Not Found! 😲

Given a 2D 4-connected grid. Each cell contains a value and an identifier. Values can be propagated ...

Wakanda Forever

We all know that Thanos has erased half of the population of the universe. Earth’s population was al...

The Archipelago of Mirpur

The archipelago of Mirpur consists of N islands. The famous architect PogPog was hired to connect al...

Freezing Trees

We heard you like trees. But this problem has no relation to trees being frozen. :D You are given a...