32/38
Part 7 of 7 · Follow-upsLearn

When the nodes are machines that only answer messages, count in post-order over the network

Two OpenAI candidates report a question about counting the machines in a tree when all you have is a call that sends a message to a machine (2 reports). It's post-order sizes, spread over a network:

Predict

Each machine forwards a count request to its children and answers its parent once. How many messages for n machines?

Pick an answer above to see the rest