Skip to content

Barcelona | class-oct2025-2 | Olha Koreniuk | Tools | Sprint 5 | Laptop Allocation - #9

Open
olhakoreniuk-debug wants to merge 1 commit into
mainfrom
sprint-5-laptop-allocation
Open

Barcelona | class-oct2025-2 | Olha Koreniuk | Tools | Sprint 5 | Laptop Allocation#9
olhakoreniuk-debug wants to merge 1 commit into
mainfrom
sprint-5-laptop-allocation

Conversation

@olhakoreniuk-debug

Copy link
Copy Markdown
Owner

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Implemented the optional Sprint 5 laptop allocation exercise.

The solution:

  • defines the provided Person, Laptop, and OperatingSystem structures
  • calculates sadness for a person/laptop pairing
  • checks all possible laptop allocations
  • chooses the allocation with the lowest total sadness
  • includes a small runnable example

Tested locally with:

  • python -m mypy laptop_allocation.py
  • python laptop_allocation.py

Questions

This is the optional Sprint 5 stretch task.

@scverge scverge left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a general comment, I'm missing comments in the files explaining what the methods are for. The PR have them, the coursework is on a website, but in the end, after 1 year, what will be available will be the file itself and not the PR.

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.

2 participants