Tag Archives: bfs
Google CodeJam 2022 – Qualification – 4. Chain Reaction
Problem Wile lives alone in the desert, so he entertains himself by building complicated machines that run on chain reactions. Each machine consists of N modules indexed 1,2,…,N. Each module may point at one other module with a lower index. If not, it points at the abyss. Modules that are not pointed at by any others are called initiators….