Search
⌘K

Leetcode 2783. Flight Occupancy and Waitlist Analysis

Simulate and analyze a stream of booking, cancellation, and waitlist events across multiple flights to compute metrics such as current/max occupancy, waitlist lengths, and wait times under fixed seat-capacity constraints. The task centers on time-ordered event processing and efficient per-flight state maintenance (sorting/timestamps, counters, and priority queues or maps) to produce the required aggregates.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.