I am trying to figure out an algorithm to sum all the numbers in a string.
Input : "1 + (2 * 3) + [4 / 4])" Output: 8
What is an efficient algorithm to solve this problem?
I am trying to figure out an algorithm to sum all the numbers in a string.
Input : "1 + (2 * 3) + [4 / 4])" Output: 8
What is an efficient algorithm to solve this problem?