To get rid of all parenthesis, we use prefix or postfix notation. But if you simply want to remove the parenthesis, why not simply scan and remove the parenthesis by shifts OR by storing the non-parenthesis elements in another output array as we scan the elements?
If I am wrong in getting the question, please do correct me. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To view this discussion on the web visit https://groups.google.com/d/msg/algogeeks/-/hqUFSejTdzEJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
