Skip to content

Commit 50905b9

Browse files
author
Gonzalo Diaz
committed
[REFACTOR] clean code: variable naming
1 parent 09e88f9 commit 50905b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hackerrank/interview_preparation_kit/search/swap_nodes_algo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ def swap_nodes(indexes: List[List[int]], queries: List[int]) -> List[List[int]]:
143143
for query in queries:
144144
for level, node_list in node_collector.items():
145145
if level % query == 0:
146-
for x in node_list:
147-
swap_branch(x)
146+
for node in node_list:
147+
swap_branch(node)
148148

149149
plain = plain_tree(tree)
150150
output.append(plain)

0 commit comments

Comments
 (0)