Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 317 Bytes

README_EN.md

File metadata and controls

14 lines (8 loc) · 317 Bytes

calculator

简体中文 | English

I/O

Input: arithmetic expression string Output: value(no precision loss)

Process

  1. convert the arithmetic expression into RPN(reverse polish notation), and stored in a stack

  2. pop the elements, calculate based on java.math.BigDecimal