Basic Calculator Ii
medium
1. Given a string s which represents an expression, evaluate this expression and return its value. 2. while dividing (/) numbers discard the decimal part.Example 3/2 should be 1 insteed of 1.5
Constraints
1. 1 <= s.length <= 3 * 10^5 2. s consists of digits and operators ('+', '-', '*', '/') separated by some number of spaces. 3. All the integers in the expression are non-negative integers.
Format
Input
Input is managed for you
Output
Output is managed for you
Example
Sample Input
3+3/2*3-2
Sample Output
4
Question Video