# Print the Chart, Count the Teams: Walking a Tree in the Right Order

Show one org chart three ways (printed with each team indented, with each manager's head count, and one level at a time) by visiting every person in the order each job needs: the four traversals, and which job each one is for.

![Cheat sheet: Print the Chart, Count the Teams: Walking a Tree in the Right Order](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/342b9b1540cb445ebe23a06237dba6b0.webp)

- Category: Data Structures
- Level: Journeyman
- Tags: data structures, In-Order Traversal, Level-Order Traversal, Post-Order Traversal, Pre-Order Traversal, Tree Traversal
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/ds-tree-traversals-cheat-sheet
