Leetcode Short [Rust | Vim] - Problem 155: Min Stack

preview_player
Показать описание
I'm working my way through the "Grind 75" Leetcode problems. Be amazed at my solutions! Poke holes in my logic! Come up with tests that break my code!

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

Why did you use a vector when you could’ve used an single i32 to keep track of the min every time? I mean, the min stack is always gonna have just one significant value: it’s top; in which case you could save a lot of work by just having a single value. Am I missing something? Great video, btw! :)

mxskll