Skip to main content
Technical

Given the root of a binary tree, return the length of the diameter of the tree.

Top community answer

No community answers yet.

Contribute an answer

Have a better answer?

Share your experience and earn credits toward your next interview session.

Contribute an answer