ParentFull threadpanarky·>> The operation can be done in O(n) time -- essentially operating on each node once.> Why wouldn't you do a pre-order traversalBecause then it wouldn't be O(n)View on HN