Wednesday, 28 August 2013

To check if paranthesis are balanced- Without stack

To check if paranthesis are balanced- Without stack

Suppose I have a very huge file and I want to check if parenthesis are
balanced. I can't use stack, right? Because it'd result in a stack
overflow. What approach I can use?

No comments:

Post a Comment