Given two binary trees, imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are not. You need to merge them into a new binary tree…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.