max-depth-assumes-valid-input

Status: IN

`maxDepth` does not validate that parentheses are balanced; `depth` could go negative on malformed input, producing silently wrong results.

Source: entries/2026/06/06/maximum-nesting-depth-of-the-parentheses-solution.md

JSON