In the solution description you say “We need to put this information in a data structure that can easily give us the smallest ending time.”. Why do we need to know the smallest ending time, and not simply any ending time in the past?
Type your question above this line.
Course: https://www.educative.io/collection/5668639101419520/5671464854355968
Lesson: https://www.educative.io/collection/page/5668639101419520/5671464854355968/4712145159716864