LeetCode Question · Jan 2022 · USA

Google | Onsite | Recursively delete leave nodes in a multi-tree

13 upvotes 5,168 views 26 replies

Question Details

Is there a O(n) solution which does not bottom-up depth on this question? I got asked this question in a google on-stie interview, but I don\'t think it is possible...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Arrays Graph Binary Tree Queue Behavioral