← Oracle questions
CodingReported in a candidate post, May 2024

Height of a binary tree

Filed under Oracle · Also reported at ServiceNow

Given the root of a binary tree, return its height, defined here as the number of nodes on the longest path from the root down to a leaf. An empty tree has height 0.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Oracle questions

Collected from public candidate posts and coding forums. Updated Nov 2026.