Evaluate Reverse Polish Notation | Leetcode 150 | Stack | Google Amazon | Java Python

preview_player
Показать описание



Popular Playlists:

#Google #Amazon #Stack #RPN #May2021 #Leetcode #Algorithm #DataStructure #Java #Preparation #NG #nickode #CookCodeTravel #CCT
Рекомендации по теме
Комментарии
Автор

Why int(a / b) used instead of // b in Python code?
// rounds towards -ve inf if any one operand is -ve number while we need to round towards 0.

/ Division Divides left hand operand by right hand operand b / a = 2.1

// Floor Division - The division of operands where the result is the quotient in which the digits after the decimal point are removed. But if one of the operands is negative, the result is floored, i.e., rounded away from zero (towards negative infinity): 9//2 = 4 and 9.0//2.0 = 4.0, -11//3 = -4, -11.0//3 = -4.0

NareshGupta
Автор

Please come with stack, queue, linkedlist problems more in java

intromaker
Автор

how do you pick the questions ? for being able to crack most of the interviews?

rohandevaki
Автор

at 6:23, how will it work ? you should send an integer, rather you have sent a string as a and b .

rohandevaki
Автор

thank you for the python code. Can one explain what is the difference between a//b and int(a/b) operations. I assume both should return same as result. I get wrong result when I submit a//b . Appreciate your help!! Thank you!

harshamadhwani
Автор

what is java python? you have coded in python only.

rohandevaki