Compute Casino Buffet Daily Gains
A restaurant has nb_seats seats and receives guest arrival/departure events in chronological order. Implement compute_day_gains(nb_seats, paying_guests, guest_movements) to compute its total gain ...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
