Observer Design Pattern

Binary Tree Traversal with Strategy design pattern and open-closed principle

Many time we need to perform certain tasks on Binary trees. These tasks can be, Counting nodes that satisfy some criteria. Displaying all nodes in particular pattern like, printing expression from expression tree. Creating mirror image of tree. etc.

Binary Tree Traversal with Strategy design pattern and open-closed principle Read More »

Scroll to Top