Evaluate Reverse Polish Notation
intermediate
RPN ifadesini hesapla. "2 1 + 3 *" = 9.
İpuçları
- 💡 Operatör değilse stack'e push
- 💡 Operatörse 2 sayıyı pop ve uygula
- 💡 Bölme Python negatif-yuvarlama farkına dikkat
Örnek Test Case'ler
Örnek #1
📥 Input
["2","1","+","3","*"]
Örnek #2
📥 Input
["4","13","5","/","+"]
💡 Kodu çalıştırmak ve gerçek çıktılarını görmek için üye girişi yapıp editöre geçebilirsin.