— Don't tell me you can't do that yourself.
Write a C++ program that will assist in determining the activity that a child will play based on his/her age and gender
— Can I have screen shots
— 50 bucks
— Is it your homework?
— buryburyzaymon your tutorials are wrong. That tree has clearly a height of 2
— I found on the net different solutions 🤔 what do you thing guys?
— I think it is debatable. Some of the articles I have read includes the root level while calculating the height, while the others don't like in the wikipedia.
Message permanent page
— If you have no depth that means it's not a linked list... so link list starts when you have a depth...That means this is 2 levels deep not 3.
— I believe you mean a binary tree and not linked list.
— Screenshot (02-Dec-2019 2:51:31 PM)
— However, the root isn't considered as the depth/height is the path from the root to the deeper leaf (or the longest path of the paths from the root to every leaf). It's not about the nodes