Hacker News new | ask | show | jobs
by bombolo 1285 days ago
You never implemented a quick polish notation calculator that uses this data structure? [1,2, '+']
1 comments

I would use two stacks, one of which stores numbers and the other stores operators.
Why? Just to have no unions of types?