Min Stack - LeetCode (Solution & Explanation | JavaScript)

Pubblicato il: 15 maggio 2020
sul canale di: 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


In questa pagina del sito puoi guardare il video online Min Stack - LeetCode (Solution & Explanation | JavaScript) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato shirin setayesh 15 maggio 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 3,104 volte e gli è piaciuto 117 spettatori. Buona visione!