Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
bombolo
3y ago
0 comments
Save
Share
You never implemented a quick polish notation calculator that uses this data structure? [1,2, '+']
0 comments
2 comments · 1 top-level
top
newest
oldest
chenzhekl
3y ago
· 1 in thread
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