Uber ATG Phone Interview - Basic Calculator

Write a function that computes basic arithmetic operations given input as a string separated by spaces. Numbers are positive integers.
i.e. "10 * 2 + 3 / 4" => 20

Easy question with similar problems: see evaluate reverse polish notation and all the basic calculator question

Very similar to this: https://leetcode.com/problems/basic-calculator-ii

Comments (1)