Question d’entretien chez Amazon

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

Réponse à la question d'entretien

Utilisateur anonyme

2 avr. 2014

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