Skip to content

Commit 9c875b1

Browse files
author
Gonzalo Diaz
committed
[REFACTOR] clean code: variable naming
1 parent 116d6fa commit 9c875b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hackerrank/interview_preparation_kit/miscellaneous/friend_circle_queries.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ def max_circle(queries) -> list[int]:
4949
result: list[int] = []
5050
friends = GroupingFriends()
5151

52-
for x in queries:
52+
for query in queries:
5353
# Computing friendship
54-
friends.unite(x[0], x[1])
54+
friends.unite(query[0], query[1])
5555

5656
# Counting friends groups
5757
result.append(friends.count_groups())

0 commit comments

Comments
 (0)