Arcesium | 19th dec | 2026| Hydrate the Nodes
arcesium · Question · Posted Apr 2026
Problem Statement: Hydrate the Nodes The Scenario: You have a tree with n nodes rooted at node 0. Each node contains an apple with a specific waterLevel: -1: Almost underhydrated. 0: Neither. 1: Almost overhydrated. The Action: You must pour water on exactly one node v. This causes two specific state changes: Subtree Effect: All apples in v's subtree (including v) that were almost overhydrated (1) become overhydrated. Global Effect: All apples in the entire tree that were almost underhydrated ...
The full answer & interview discussion are available to premium members.
Log in Create a free account