Problem of the Day
A new programming or logic puzzle every Mon-Fri

Expression Calculator

The week is almost over! Time flies when you're having fun. Speaking of fun, today's problem is to build a mathematical expression calculator. Basically your function will take in a string such as "5 * (7 - 2) + 6" and should return 31. Using eval is no fun.

Enjoy!

Permalink: http://problemotd.com/problem/expression-calculator/

Comments:

  • There are currently no comments. You can be first!

Content curated by @MaxBurstein