[LeetCode] Booking Concert Tickets in Groups

1 · · May 28, 2022, 4:23 p.m.
Summary
2286. Booking Concert Tickets in Groups A concert hall has n rows numbered from 0 to n - 1, each with m seats, numbered from 0 to m - 1. You need to design a ticketing system that can allocate seats in the following cases: If a group of k spectators can sit together in a row. If every member of a group of k spectators can get a seat. They may or may not sit together. Note that the spectators are very picky. Hence: They will book seats only if each member of their group can get a seat with ro...