Skip to content

Commit 9ffb839

Browse files
committed
compute sadness level for each scenario
1 parent fc69d05 commit 9ffb839

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

implement-laptop-allocation/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,7 @@ def allocate_laptops(people: List[Person], laptops: List[Laptop]) -> Dict[Person
4141
for scenario in scenarios(laptops):
4242
total_sadness = 0
4343

44+
#find the sadness level for each scenario
45+
for person, laptop in zip(people, scenario):
46+
total_sadness += sadness(person, laptop)
47+

0 commit comments

Comments
 (0)