keshavMM004/InterviewQuest

META interview question

Aperta

#4 aperta il 7 ott 2024

 (0 commenti) (0 reazioni) (0 assegnatari)Java (0 fork)auto 404
hacktoberfest

Metriche repository

Star
 (0 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor