Count Ways to Build Rooms in an Ant Colony
Count the orders in which rooms of an ant colony can be built so that every parent room is built before its children. The visual shows a rooted tree with subtree sizes on each node and the count combined as children are placed.