Maximum Depth of Binary Tree at Uber

Easy77.9% acceptance

This problem has 62.5% frequency at Uber.

Problem Description

Given the `root` of a binary tree, return _its maximum depth_. A binary tree's **maximum depth**  is the number of nodes along the longest path from the root node down to the farthest leaf node.

Read full problem and hints

Topics

Also asked at 15 companies


More Uber Questions

View all Uber questions