Given a ternary tree (each node has up to 3 children), output the right-side view (nodes visible from the right) and a custom alternating level-order traversal (level 1, level N, level 2, level N-1…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.