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

Input Format

Input is managed for you

Output Format

Output is managed for you

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.

Notice

Try First, Check Solution later

1. You should first read the question and watch the question video.
2. Think of a solution approach, then try and submit the question on editor tab.
3. We strongly advise you to watch the solution video for prescribed approach.

Example

Input
3+3/2*3-2
Output
4
Previous
Number Of Valid Subarrays
Next
Basic Calculator Iii

Related Questions