Leetcode 150 - Evaluate Reverse Polish Notation

preview_player
Показать описание
Leetcode 150 - Evaluate Reverse Polish Notation
Рекомендации по теме
Комментарии
Автор

Learn data structures and algorithms for free at algomap.io :)

GregHogg
Автор

Reverse polish is quite the mouthful

I've always called it postfix expressions or just postfix

adityaanuragi
Автор

We covered this in my intro to data structures class as an application of the stack. Glad to see it has applications in the real world too!

Cipheri
Автор

This method wouldn't actually work for subtraction, since your stack method reverses the order of those numbers and subtraction (and division too for that matter) isn't commutative

TheAMparty
Автор

Man i wish their was a built in operation class in python

Bacon.
Автор

You can do *"int(a//b)"*, instead of *"a/b"* with int and ceil

hello_there
Автор

Reverse polish = postfix valuation


















Some one comment so that I won't forget about it

RIPNANI
Автор

How long do you think it will take for one to master data structures and algorithms

joshuaokhiria
Автор

What if there are three numbers though?

like [1, 2, 3, +] The code wouldn't work anymore

Jandoesrun
Автор

Reverse polish notation means -> postfix

edudictivecoder
join shbcf.ru