Tag Archives: queue
![](https://igorperic.dev/wp-content/uploads/2022/04/Untitled-April-2-2022-16.47-3.jpg)
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….