DataStructures-and-Algorithms

Code Challenge

Breadth-first Traversal.

Specifications

Challenge Setup & Execution

Branch Name: tree-breadth-first

Challenge Type: Code Challenge / Algorithm

Feature Tasks

NOTE: Traverse the input tree using a Breadth-first approach

Example

Input

example

Output

[2,7,5,2,6,9,5,11,4]

Requirements

Ensure your complete solution follows the standard requirements.

  1. Write unit tests
  2. Follow the template for a well-formatted README
  3. Submit the assignment following these instructions