Live Batches
Masterclasses
Menu
Free Courses
Account
Login / Sign Up
Problem Submissions Solution

Height / Max Depth of Binary Tree

Difficulty: Medium

Acceptance: 75.36%

Points: 30.00

You are given the root of a binary tree. Your task is to find and return the maximum depth of the tree. The maximum depth is the number of nodes along the longest path from the root to a leaf.

Topics

Companies

Articles

Examples:
Constraints:
  • - 0 = Number of nodes = 105
  • - -10? = Node.data = 10?
Companies:
Samsung Media.net
Topics:
Tree Traversal Binary Tree
Locked Content
Access Restricted: Please Login to access the code editor and test cases.