Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in --d --h --m --s-- days -- hours -- minutes -- seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 1d 16h 09m 11s1 days 16 hours 9 minutes 11 seconds.
Guide: Expected Value Questions in Quant Interviews: 12 Classics, Solved
You are given a rooted tree with nodes. At each step you choose a node uniformly at random from the nodes that are still in the tree, and remove that node together with its entire subtree. This continues until every node has been removed (that is, until the root is chosen). Find the expected number of steps.
Compute it for the complete binary tree with nodes: a root, its children, and children of each of those, for nodes in total.