Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 522 Bytes

README.md

File metadata and controls

8 lines (7 loc) · 522 Bytes

Binary Tree implemented using Iterator pattern

Iterator Pattern is a design pattern in which an iterator is used to traverse a container and access the container's elements, without knowing it's inner implementations.

Using the design pattern, following traversal have been implemented

  • Preorder traversal
  • Inorder traversal
  • Postorder traversal
  • Breadth First traversal