Pergunta de entrevista da empresa Algotec

Implement a resizeable stack of integers, that knows what is the maximum element in each moment. operations : push, pop, peek, max. should be as efficient as possible - memory and runtime.