Skip to content

Commit c325784

Browse files
author
Gonzalo Diaz
committed
[REFACTOR] clean code: variable naming
1 parent efbd0c2 commit c325784

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hackerrank/interview_preparation_kit/graphs/roads_and_libraries.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ def __init__(self, n: int, cities: list[list[int]]):
1212
self._paths = [-1 for _ in range(n + 1)]
1313

1414
for path in cities:
15-
a, b = path[0], path[1]
16-
if self.unite(a, b):
15+
city_a, city_b = path[0], path[1]
16+
if self.unite(city_a, city_b):
1717
self._unions += 1
1818

1919
def find(self, a: int):

0 commit comments

Comments
 (0)