Reported interview periodOct 2025–Sep 2026
Aggregate Count and Topology over a Machine Tree
Machines form a rooted tree and may communicate only with their parent or children. Implement message handling so the root can count all machines and reconstruct a deterministic topology string.
Practice focusRequirements - A count request propagates to children; a leaf replies 1 ; an internal node replies with one plus all child counts. - A topology request produces id(child1,child2,...) ; a leaf is id[] . - Only the root publishes the final result. - Correlate replies with operation type and wait for every expected child exactly once. - Do not assume child replies arrive in order; sort by child ID for deterministic topology. - Avoid blocking the message handler and state behavior for duplicate requests.…