Domanda di colloquio di MathWorks

The second LeetCode-style question focused on a priority queue (heap).