One pretty big issue I've run into with JS is that it has no in built in priority queue unlike Java or Python (heapq).
I was just wondering in an interview situation, could you propose below solution and essentially 'pretend' that JS does indeed have a native Priority Queue structure:
Only asking because implementing a MinHeap is pretty complicated and not sure if I'll able to do it in a high stress environment.