Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
bombolo
3y ago
0 comments
Share
You never implemented a quick polish notation calculator that uses this data structure? [1,2, '+']
undefined | Better HN
0 comments
default
newest
oldest
chenzhekl
3y ago
I would use two stacks, one of which stores numbers and the other stores operators.
bombolo
OP
3y ago
Why? Just to have no unions of types?
j
/
k
navigate · click thread line to collapse