← Walmart questions

Print boundary of a general tree clockwise

Filed under Walmart

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.

Related Walmart questions

Collected from public candidate posts and coding forums. Updated Nov 2026.