{"id":"path-sum-leaf-only-matching","text":"`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.","truth_value":"IN","source":"entries/2026/06/06/path-sum-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"path-sum-leaf-only-matching","truth_value":"IN","reason":"premise"}]}}