Devise an eval() method for numerical expressions such as + x - / given a string containing brackets and parenthesis. I.E. "(3 * 6) + [(2/4) - 1]"
Anonymous
Just use two stacks to implement the question, one for numbers, and the other is for operators.
Check out your Company Bowl for anonymous work chats.