Search⌘ K
AI Features

Challenge 4: Finding the Height of a Binary Tree

Explore how to calculate the height of a binary tree by implementing a function in C#. Understand the concept of node and tree height, and practice designing an algorithm to return the maximum depth of a binary search 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
...