Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
| module Converter | |
| PRIORITIES = {')' => 0, '(' => 0, '+' => 1, '-' => 1, '*' => 2, '/' => 3 } | |
| module_function | |
| def polish(inp_exp) | |
| res = [] | |
| stack = [] | |
| exp = inp_exp.scan(/\d+|\(|\)|\+|\-|\*|\//) | |
| exp.each do |e| |