Pergunta de entrevista da empresa TikTok

Algorithm problems. Heap; dynamic programming.