blob: 9c8cb4d8aa39f786cf5a77f753a48da97ef3638e (
plain)
1
2
3
4
5
6
7
8
9
|
# Scheduling & Binary Search Trees
* Airport with a single runway.
* Reservations for future landings.
* Reserve request specifies landing time t
* Add `t` to the set `R` of landing times if no other landings are scheduled within `k` minutes.
* Remove from set `R` after plane lands.
* `|R| = n`
* `O(lg n)` time where `n` is the size of the set.
|