Assign People to Apartments Maximizing Satisfied Preferences
Given a list of apartments and a list of people. Each apartment has an id and a capacity cap (the maximum number of people it can hold). Each person either wants housemates (1) or does not (0). Tota...
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:
