---
title: "Discussion on \"Height of BinaryTree\" | Hashnode"
description: "Discussion on \"Height of BinaryTree\". Let's explain how the maxDepth function calculates the height of a binary tree using a diagram and a step-by-step breakdown of each iteration. We'll use the following binary tree as an example:\n      1\n     / \\\n    2   3\n   / \\\n  4   5\n\nTree Structur..."
url: "https://hashnode.com/posts/height-of-binarytree/67167cd8aed11cc382e3f160"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Height of BinaryTree](https://harsehrawat.hashnode.dev/height-of-binarytree?utm_source=hashnode&utm_medium=feed)

Let's explain how the maxDepth function calculates the height of a binary tree using a diagram and a step-by-step breakdown of each iteration. We'll use the following binary tree as an example: 1 / \\ 2 3 / \\ 4 5 Tree Structur...

Oct 21, 2024 · 4 min read · harsehrawat.hashnode.dev  
Read the article

## Written by

[harsh sehrawat](https://hashnode.com/@harsehrawat)

@harsehrawat · gurugram, Haryana

  
[View profile](https://hashnode.com/@harsehrawat)

On pc For codes

I am a engineering student who's determined to change the time ahead .

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
