← Questions

Assign dorm rooms by student preference

0
GoogleOO designLast asked Feb 2026

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.

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing