Domanda di colloquio di TikTok

Algorithm problems. Heap; dynamic programming.