Problem 1190 · Medium

Reverse Substrings Between Each Pair of Parentheses

Reverse the text inside every matched pair of parentheses, starting from the innermost pairs and working outward, then remove the brackets. The visual shows a stack of open positions and each reversed segment.

Open the interactive visualisation