Assign dorm rooms by student preference

0
Remix

You get student IDs and room IDs. Each student prefers a two-person room or a four-person room. Design a system that assigns students to rooms according to their preferences. The focus is class design, data structures and the assignment logic, not a hard algorithm.

GoogleCodingLast asked Feb 2026
No answer yet. Write the first one; the best answer gets endorsed.