Frage im Vorstellungsgespräch bei MathWorks

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