Pergunta de entrevista da empresa Telenav

what are heaps? running time, space, complexity