Min stack leetcode | min stack leetcode python | min stack python | leetcode | interview question

preview_player
Показать описание
Please like the video, this really motivates us to make more such videos and helps us to grow. thecodingworld is a community which is formed to help fellow student and professionals looking to crack the “coding interviews”.

We love solving and sharing problems which are frequently asked in technical interviews and voted by community at various websites.

✅ For more and upcoming updates join our community

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

In your code what is "size" is it size of stack or simple an other variable?I am not understanding why you use "size" can you explain it?

abdulhaq
Автор

Why not just keep track of minimum value instead of creating another stack? And in-case if minimum value is popped from the stack, update minimum value by iterating over the stack. So in getMin() function we just return minimum value.

swagh
Автор

Really helpful video..Thank u..keep making..and keep explaining like this

ridhammodh
Автор

Can you please tell me how can i do this problem with the doubly linked list.

niteshrathore
join shbcf.ru