Basic-Python-Programs icon indicating copy to clipboard operation
Basic-Python-Programs copied to clipboard

add-binary-tree-traversal

Open ManuSharma0702 opened this issue 1 year ago • 0 comments

Added binary_tree_traversal.py: Implemented a Node class to represent each node in the binary tree. Implemented inorder_traversal function to traverse the tree in in-order fashion. Implemented preorder_traversal function to traverse the tree in pre-order fashion. Implemented postorder_traversal function to traverse the tree in post-order fashion. Included driver code to demonstrate the functionality of the traversal methods.

ManuSharma0702 avatar Jun 04 '24 23:06 ManuSharma0702