Given a general tree (where each node can have an arbitrary number of children), print its boundary in a clockwise order starting with the rightmost elements, then bottom-most (leaves), and finally…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.