Skip to content

Mianto/iterator-pattern-in-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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