Question 1
Medium Given a train schedule, where each train has a departure station, arrival station, departure time, and arrival time, determine whether a traveler can get from station A to station B. Example: trains from A to Y departing at 1 and arriving at 20, from A to Y departing at 2 and arriving at 5, and from Y to B departing at 6 and arriving at 9, with source A and destination B, give true.