bradgarropy / homeaway-binary-tree

🌲️ homeaway interview question - binary tree

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem Statement

Implement a binary tree and perform a breadth first traversal on it's nodes.
The tree is not guaranteed to be full, balanced, or sorted.

Bonus

Implement depth first traversal.
Support traversal in both directions (left -> right, right -> left).
Implement a binary search tree.

Example Tree

binary tree

About

🌲️ homeaway interview question - binary tree

License:MIT License


Languages

Language:JavaScript 100.0%