Skip to content

Commit f39df4a

Browse files
committed
fix buggy code by replacing scenarios with permutations
1 parent f599d9b commit f39df4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

implement-laptop-allocation/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def allocate_laptops(people: List[Person], laptops: List[Laptop]) -> Dict[Person
3838
best_scenario_assignment = None
3939
best_total_sadness = float("inf")
4040

41-
for scenario in scenarios(laptops):
41+
for scenario in permutations(laptops):
4242
total_sadness = 0
4343

4444
#find the sadness level for each scenario

0 commit comments

Comments
 (0)