Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 286 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 286 Bytes

Reverse Polish Notation

Cf. Wikipedia

Write a function that computes an expression provided according to the reverse polish notation, e.g.:

// 1 10 100 + - = 1 110 - = -109
rpn(1, 10, 100, "+", "-") // -109