Skip to content

Commit a2e3bad

Browse files
author
Gonzalo Diaz
committed
[REFACTOR] clean code: variable naming
1 parent 165242d commit a2e3bad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/hackerrank/interview_preparation_kit/greedy_algorithms/luck_balance.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ def luck_balance(k, contests: list) -> int:
2020
important_competitions: list[Competition] = []
2121
nonimportant_competitions: list[Competition] = []
2222

23-
for x in contests:
24-
luck = x[0]
25-
important = x[1]
23+
for contest in contests:
24+
luck = contest[0]
25+
important = contest[1]
2626

2727
if important == 1:
2828
important_competitions.append(Competition(luck=luck, important=important))

0 commit comments

Comments
 (0)