Reverse Substrings Between Each Pair of Parentheses
Problem Link
Click Here
Approach
First we will store the characters other than parenthesis because we don't want parenthesis in our answer.
As soon as we encounter an opening bracket we will store it's index In the vector
As all the parenthesis ar...
ujjwalsharma.hashnode.dev1 min read