mindepth-depth-one-indexed

Status: IN

`minDepth` uses 1-indexed depth (root = 1), so a single-node tree returns 1 and an empty tree returns 0.

Source: entries/2026/06/06/minimum-depth-of-binary-tree-solution.md

JSON