Try all possible room assignments and find the minimum.
Or simulate minute-by-minute, tracking which meetings are active.
Both approaches are or worse. Can you process events more efficiently?
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
The trap
Try all possible room assignments and find the minimum.
Or simulate minute-by-minute, tracking which meetings are active.
Both approaches are or worse. Can you process events more efficiently?