MIN STACK (Leetcode) - Code & Whiteboard

preview_player
Показать описание
This problem is NOT easy! Leetcode's #155 Min Stack is an object oriented design problem with a very clever solution that you'll find here :)

Let me know if you have any questions about the solution!

---------------------------------------------------------------------------------------------------------------------------------------------------------------
Let's connect on LinkedIn!

Follow me on Medium!

Questions or suggestions for new videos? Email me!
Рекомендации по теме
Комментарии
Автор

Thank you. the whiteboard explanation helped a lot.

frank_salas
Автор

this so smart and easy never thought about it

tariqelamin
Автор

Thank you so much. I was actually thinking in using a MinHeap as auxiliary data structure, but it will make O(logN) new insertions and of course use more space. Your solution is so smart, i'll go and implement it now :)

darod
welcome to shbcf.ru