Status: IN
`maxDepth` uses O(1) space with two integer counters (`depth` and `max_depth`), avoiding the O(n) stack that a structural parenthesis solution would require.
Source: entries/2026/06/06/maximum-nesting-depth-of-the-parentheses-solution.md
JSON