Object-Oriented Programming · Square · Medium
An airport operates a single runway, and the airlines that use it send in their planned departures for one day. Your job is to turn those submissions into a schedule that is kept in time order. Because only one runway is available, no two flights may share the same departure time: any submission whose departure time is already taken must be rejected. Once the schedule exists, it must also support rescheduling, which means changing the departure time of a flight that is…