Pergunta de entrevista da empresa Yahoo

Min stack

Resposta da entrevista

Sigiloso

27 de jun. de 2018

A Min stack is a form of a stack. A stack follows the rule of "first in last out" like a STACK of books. A min stack is just a stack that has the function necessary to get the smallest thing in the stack. Stacks usually include several specific functions: pop - remove value on top push - add value to top of stack peek - look at value on top but leave it on stack

1