Challenge 4: Finding the Height of a Binary Tree
Given the root to a binary search tree, write a function to find the height of the tree.
Problem statement
Implement a function int findHeight(Node* rootNode)
, which returns the height of a given binary search tree.
- Height of a Node — The number of edges
Access this course and 1400+ top-rated courses and projects.