Given a input string containing an expression containing integers, operators, and parentheses, write a function that calculates and returns the result.
Operator precedence has to be considered.
s = "12+34/(3-4)+21*4"
calculate(s)
=> 62
| Name | Name | Last commit date | ||
|---|---|---|---|---|