Skip to content

Commit b945d21

Browse files
authored
Merge pull request #571 from sir-gon/develop
[REFACTOR] [FIX] [Hacker Rank] Interview Preparation Kit: Miscellaneo…
2 parents 068576e + 1b0e358 commit b945d21

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)