Uber ATG Phone Interview - Basic Calculator
Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2019-05-23Added By Anonymous
Source: Link
Company: Uber
Interview Stage: Phone Interview
Original Post Content:
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