keshavMM004/InterviewQuest

META interview question

Open

#4 opened on Oct 7, 2024

 (0 comments) (0 reactions) (0 assignees)Java (0 forks)auto 404
hacktoberfest

Repository metrics

Stars
 (0 stars)
PR merge metrics
 (PR metrics pending)

Description

Given the root of a binary tree, return the diameter of the tree, which is the length of the longest path between any two nodes. This path can pass through the root but doesn't have to.

The length of a path between two nodes is defined by the number of edges connecting them. leetcode

Contributor guide