---
title: "Discussion on \"Diameter of Binary Tree (Easy)\" | Hashnode"
description: "Discussion on \"Diameter of Binary Tree (Easy)\". Given the root of a binary tree, return the length of the diameter of the tree.\nThe diameter of a binary tree is the length of the longest path between any two nodes in a tree. This path may or may not pass through the root.\nThe length of a path betw..."
url: "https://hashnode.com/posts/diameter-of-binary-tree-easy/6678794a09e342f83e724ebd"
---

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

Discussion

# [Diameter of Binary Tree (Easy)](https://lietcode.hashnode.dev/diameter-of-binary-tree-easy?utm_source=hashnode&utm_medium=feed)

Given the root of a binary tree, return the length of the diameter of the tree. The diameter of a binary tree is the length of the longest path between any two nodes in a tree. This path may or may not pass through the root. The length of a path betw...

Jun 23, 2024 · 3 min read · lietcode.hashnode.dev  
Read the article

-   [#tree](https://hashnode.com/tag/tree)

## Written by

[Abhi](https://hashnode.com/@lietcode)

@lietcode

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

Let's crack the interviews

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
