Basic Calculator at DoorDash
Hard46.5% acceptance
This problem has 50.0% frequency at DoorDash.
Problem Description
Given a string `s` representing a valid expression, implement a basic calculator to evaluate it, and return _the result of the evaluation_. **Note:** You are **not** allowed to use any built-in function which evaluates strings as mathematical expressions, such as `eval()`.
Read full problem and hintsTopics
Also asked at 23 companies
More DoorDash Questions
Search Suggestions SystemMediumCheck if One String Swap Can Make Strings EqualEasyMinimum Number of Steps to Make Two Strings AnagramMediumNext Greater Element IIIMediumAsteroid CollisionMedium
View all DoorDash questions