News

-- if we have hierarchical data then we use tree data structure. --when a node that do not have parent node is called as "root node" . # The root node is the topmost node in a tree data structure. # ...
//int index=find_index(inorder,in_start,in_end,preorder[pre_start]); int index=index_inorder.get(preorder[pre_start]); root.left=buildTree(preorder,inorder,pre_start ...
Abstract: The tree (hierarchical) structure is one of the elementary memory arrangements, used by numerous data structures – ranging from simple to relatively sophisticated ones. The most well-known ...