Min Stack - LeetCode (Solution & Explanation | JavaScript)

Published: 15 May 2020
on channel: shirin setayesh
3,104
117

#min #stack #leetcode

Min Stack - LeetCode
Question: https://leetcode.com/problems/min-stack/

Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.

push(x) -- Push element x onto stack.
pop() -- Removes the element on top of the stack.
top() -- Get the top element.
getMin() -- Retrieve the minimum element in the stack.

Topic(s): Stack, Design

Problem #: 155


On this page of the site you can watch the video online Min Stack - LeetCode (Solution & Explanation | JavaScript) with a duration of hours minute second in good quality, which was uploaded by the user shirin setayesh 15 May 2020, share the link with friends and acquaintances, this video has already been watched 3,104 times on youtube and it was liked by 117 viewers. Enjoy your viewing!