Problem 1021 · Easy

Remove Outermost Parentheses

Remove the outer pair from every primitive balanced block in a parentheses string. A depth counter shows when each outer layer opens and closes.

Open the interactive visualisation