Creating A Binary Tree From A General Tree in data structure

The rules for converting a general tree to a binary tree are given below. Note that a general tree is converted into a binary tree and not a binary search tree Rule 1: Root of the binary tree = Root of the general tree Rule 2: Left child of a node = Leftmost child of … Read more