String
1190. Reverse Substrings Between Each Pair of Parentheses
I'm given a string with balanced, possibly nested parentheses and lowercase letters. Starting from the innermost pair, I have to reverse the substring inside each pair of brackets and drop the brackets themselves, until none are left. Every ( has a matching ), so the parentheses describe a clean tre
Loading…