Some nodes of a graph are torches with power 16; every other node is a wire whose power drops by one per step away from the nearest torch. Compute every node's power.
Some nodes of a graph are torches with power 16; every other node is a wire whose power drops by one per step away from the nearest torch. Compute every node's power.
Opens with the full question.