Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 407 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 407 Bytes

176.Basic Calculator II

Description

Implement a basic calculator to evaluate a simple expression string.

The expression string contains only non-negative integers, +, -, *, / operators and empty spaces . The integer division should truncate toward zero.

Example

"3+2*2" = 7
" 3/2 " = 1
" 3+5 / 2 " = 5

From

LeetCode