Pregunta de entrevista de Qualtrics

Coding: A greedy problem and a min/max heap problem