Basic Calculator II Style Expression Evaluation
Given an expression string containing only non-negative integers, the operators + - * / and spaces, evaluate it. Integer division truncates toward zero. Do not use eval.
Input format: one line ...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
