increment-before-test-pattern

Status: IN

The outer-parenthesis stripping algorithm increments/decrements depth *before* testing the inclusion condition, which is what makes `> 1` (for open) and `> 0` (for close) the correct thresholds — reversing the order would produce wrong results.

Source: entries/2026/06/06/remove-outermost-parentheses-solution.md

JSON