Pergunta de entrevista da empresa Amazon

Implement a stack data structure with O(1) push, pop and access to the largest element.

Resposta da entrevista

Sigiloso

2 de abr. de 2014

I used two queues, one for the stack and one to hold largest elements.