Buffet Restaurant Entry/Exit Billing with Capacity Constraints

Asked at Upstart · Coding Questions · Difficulty: Medium

A buffet restaurant has a fixed seating capacity `capacity`. You are given:

Loading the problem…