Hi,
can anyone help me find an algorithm that recieves a string and calculate it's arithmetic value?
for example:
the method will recieve: "(4+(6*2))/(2+2)"
and the result would be 4.
No need to do a validation on the string, we assume it's correct.
Thanks!
can anyone help me find an algorithm that recieves a string and calculate it's arithmetic value?
for example:
the method will recieve: "(4+(6*2))/(2+2)"
and the result would be 4.
No need to do a validation on the string, we assume it's correct.
Thanks!