Pergunta de entrevista da empresa Intuit

Implement a Stack with push pop and get smallest value

Resposta da entrevista

Sigiloso

23 de nov. de 2016

Use a LinkedList with a head and tail pointer, add to the back of the linkedlist for push, remove and return from back for pop. Keep a min variable/pointer (depending on what the interviewer wants) that updates every time an element is added.

4