Problem 2116 · Medium

Check if a Parentheses String Can Be Valid

Decide whether changing unlocked parentheses can produce a valid string.

Open the interactive visualisation