Pergunta de entrevista da empresa Optiver

Implement an algorithm to merge N sorted lists.