Click here to Skip to main content
15,897,226 members

Comments by muhammad mushtaq2 (Top 3 by date)

muhammad mushtaq2 3-Jan-21 13:20pm View    
so i can start the proper code above code is not complete
muhammad mushtaq2 3-Jan-21 13:19pm View    
i just need the the logic to how can i check that data structure passed is a tree an if it is a tree than is it binary tree
muhammad mushtaq2 3-Jan-21 12:25pm View    
yes
this is my question
write a function treeType(Node *) in c++ When root node of a data structure is passed it checks following things
•Is it a Tree?
•Is it a Binary Tree?
•Is it a BST?