---
title: "Discussion on \"Find the Diameter of a Binary Tree\" | Hashnode"
description: "Discussion on \"Find the Diameter of a Binary Tree\". You are given the reference to the root node of a binary tree. Find the diameter of the tree.\nInput:\nThe function diameterOfBinaryTree(struct node *root) only takes the reference to the root node as input.\nOutput:\nReturn the diameter of the Binary Tr..."
url: "https://hashnode.com/posts/find-the-diameter-of-a-binary-tree/5dedcdc2ca954f7448bb9b4a"
---

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

Discussion

# [Find the Diameter of a Binary Tree](https://asquero.hashnode.dev/find-the-diameter-of-a-binary-tree?utm_source=hashnode&utm_medium=feed)

You are given the reference to the root node of a binary tree. Find the diameter of the tree. Input: The function diameterOfBinaryTree(struct node \*root) only takes the reference to the root node as input. Output: Return the diameter of the Binary Tr...

Dec 9, 2019 · asquero.hashnode.dev  
Read the article

-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#data-structures](https://hashnode.com/tag/data-structures)
-   [#coding](https://hashnode.com/tag/coding)
-   [#competitive-programming](https://hashnode.com/tag/competitive-programming)
-   [#programming-ciovqvfcb008mb253jrczo9ye](https://hashnode.com/tag/programming-ciovqvfcb008mb253jrczo9ye)

## Written by

[Srajan Gupta](https://hashnode.com/@srajaninnov)

@srajaninnov

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

Founder @Asquero

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
