Skip to content

Barcelona | OCT25 | Tatiana Kuzmina | Sprint 5 | Laptop assignment - #9

Open
tanibien wants to merge 7 commits into
mainfrom
laptop-assignment
Open

Barcelona | OCT25 | Tatiana Kuzmina | Sprint 5 | Laptop assignment#9
tanibien wants to merge 7 commits into
mainfrom
laptop-assignment

Conversation

@tanibien

Copy link
Copy Markdown
Owner

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Implemented the allocate_laptops function to match people with their preferred operating systems. Key features:

  1. Used a greedy algorithm to minimize total "sadness"
  2. Replaced List with Tuple in the Person dataclass to ensure objects are hashable and can be used as dictionary keys
  3. Added logic to handle OS preferences not found in the user's list (sadness score of 100)

Questions

Ask any questions you have for your reviewer. You must remove this section if you have no questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant