path-sum-leaf-only-matching

Status: IN

`hasPathSum` only returns `True` when the matching path ends at a leaf node (both children `None`); internal nodes whose cumulative sum equals the target are explicitly rejected.

Source: entries/2026/06/06/path-sum-solution.md

JSON