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 165242d commit a2e3badCopy full SHA for a2e3bad
src/hackerrank/interview_preparation_kit/greedy_algorithms/luck_balance.py
@@ -20,9 +20,9 @@ def luck_balance(k, contests: list) -> int:
20
important_competitions: list[Competition] = []
21
nonimportant_competitions: list[Competition] = []
22
23
- for x in contests:
24
- luck = x[0]
25
- important = x[1]
+ for contest in contests:
+ luck = contest[0]
+ important = contest[1]
26
27
if important == 1:
28
important_competitions.append(Competition(luck=luck, important=important))
0 commit comments