Hi, I have been trying to solve the COMPILER problem. I am using the string as an array instead of using stack and queue. I have a suspicion that the reason my code is not working is because of else if condition in line 28. I could be wrong though.
Problem link here: https://www.codechef.com/LRNDSA02/problems/COMPILER
Solution link here: https://www.codechef.com/viewsolution/33231067
Thanks for the help guys