HF RL Explorer

train seat reservations: add feature

train seat reservations: add feature: a task in smol-software-harbor (Harbor dataset). Families want to sit together. Add a new module train/groups.py with group seats(free, n) : for up to 4 people, the first row (rows of four seats: 1-4, 5-8, ...) that has n free seats, taking that row's lowest…

The task

Families want to sit together. Add a new module `train/groups.py` with `group_seats(free, n)`: for up to 4 people, the first row (rows of four seats: 1-4, 5-8, ...) that has `n` free seats, taking that row's lowest free seats; for 5 or more people, the first run of consecutive rows whose free seats add up to `n`,…

Part of efederici/smol-software-harbor.