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 13d 22h 42m 26s13 days 22 hours 42 minutes 26 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.