Leetcode 1396. Design Underground System
Design a system that records passenger check-ins and check-outs and returns the average direct travel time between two stations. The core challenge is maintaining active check-ins per passenger id and aggregated travel-time statistics (sum and count) per station-pair to answer getAverageTime queries efficiently.
Asked at:
Axon
Bloomberg
Ramp
Apple
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Early August, 2026
Senior
Late June, 2026
Senior
Mid June, 2026
Senior
Hello Interview Premium
Your account is free and you can post anonymously if you choose.