We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2405f09 commit fc69d05Copy full SHA for fc69d05
1 file changed
implement-laptop-allocation/main.py
@@ -33,4 +33,11 @@ def sadness(person: Person, laptop: Laptop) ->int:
33
return 100
34
35
36
-def allocate_laptops(people: List[Person], laptops: List[Laptop]) -> Dict[Person, Laptop]:
+def allocate_laptops(people: List[Person], laptops: List[Laptop]) -> Dict[Person, Laptop]:
37
+
38
+ best_scenario_assignment = None
39
+ best_scenario_sadness = float("inf")
40
41
+ for scenario in scenarios(laptops):
42
+ total_sadness = 0
43
0 commit comments