You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to say the question, is more suitable for backtracking, instead of stack, as it uses a very small concept of stack, check Parathesis that is done before, unless we are meant to use stack to make the string instead of using backtracking, so it should be mentioned