Daily challenge for 2026-09-03
611. Train Station Departure Order
You are given an array of strings trains, where each string represents a train schedule in the format "ID-HH:MM". A train is considered delayed if its departure hour is strictly greater than 12 (i.e., afternoon/evening departures, from 13:00 to 23:59). Return a new array containing only the IDs of the delayed trains, sorted alphabetically.
Example:
Input: trains = ["ExpressA-14:30", "LocalB-09:15", "CargoC-18:00"]
Output: ["CargoC", "ExpressA"]
Run this challenge interactively in Python or JavaScript when the app loads.