Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 241 Bytes

HINTS.md

File metadata and controls

8 lines (6 loc) · 241 Bytes

Tree Zig Zag

Hints

  • How do you traverse a tree such that you visit all of a vertex's neighbors before visiting its neighbors' neighbors?
  • How do you keep track of whether to print out the left-most or right-most vertex?