Skip to content

Commit 1b0e358

Browse files
author
Gonzalo Diaz
committed
[REFACTOR] [FIX] [Hacker Rank] Interview Preparation Kit: Miscellaneous: Ice Cream Parlor. Variable name "x" doesn't conform to snake_case naming style.
1 parent 068576e commit 1b0e358

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hackerrank/interview_preparation_kit/search/ctci_ice_cream_parlor_bruteforce.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
def what_flavors_brute_force(cost: list[int], money: int) -> list[int] | None:
22

3-
for i, x in enumerate(cost):
3+
for i, price in enumerate(cost):
44

5-
budget = money - x
5+
budget = money - price
66

77
for j in range(i + 1, len(cost)):
88
if budget - cost[j] == 0:

0 commit comments

Comments
 (0)