educative.io

Educative

Heap issue in https://www.educative.io/courses/grokking-the-coding-interview/JQMAmrVPL7l

The heappush in line number 25 will bring meeting with smallest starttime on top not wrt to endtime.

add the current meeting into min_heap

heappush(minHeap, meeting)

Therefore, we need to push and pop in heap only the meeting end time not the tuple.
Is this correct ?