Stack problems are so easy

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


#coding #leetcode #python
Рекомендации по теме
Комментарии
Автор

Can you show us your shirt collection? Fire shirt choices

paulsingh
Автор

Very nice glad to have a varieties of great guys like you and gre

hlubradio
Автор

big tech asks surprisingly simple questions

pastori
Автор

So this is literally like an op stack seen in assembly

arhum
Автор

Also could use match case statements, or a map from operand token to a function 🎉🔥

Kaszanas
Автор

I just wanna know, how can we build our intuition to use one of the algo/DSA for any random question?

muhammadravishulthanhabibi
Автор

Bro, when is the next time you are going to offer any discount on the Pro lifetime subscription? Waiting to avail the same... Love and Respect from India! 🍻

asishkumarsatapathy
Автор

Really interesting, I failed because I thought it could be more than 2 numbers to operate. So I was using sum(stack).

Shmolitz
Автор

Can you please describe stack, I know the methode of Stack and how to use it but I don't know where to use it

mikekhan
Автор

Good vid <3, but it fails a certain test case.
Fix:
elif token == '/':
a, b = stack.pop(), stack.pop()
result = abs(b) // abs(a)
if (b < 0) ^ (a < 0):
result = -result
stack.append(result)

gods_drunkest_driver
Автор

Could you tell the intuition behind using the stack

drewplayz
Автор

I stopped thought of same approach
..fell like giving interview but deep down i know i dont know anything

abhinjr
Автор

Why did you left after 2 months ? What was the Story ?

gorakhborude
Автор

How this is medium?This shit is easy as fuck

hunt