Why are we popping the elements from maxStartHeaps ?
I cannot understand that particular part of the solution.
I get we are removing the first one, and then adding it back in the end, but what about subsequent ones ?
Type your question above this line.
Course: https://www.educative.io/collection/5668639101419520/5671464854355968
Lesson: https://www.educative.io/collection/page/5668639101419520/5671464854355968/5028748841713664