Skip to content

Commit b4780c6

Browse files
author
Gonzalo Diaz
committed
[REFACTOR] clean code: variable naming
1 parent 274735a commit b4780c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/hackerrank/interview_preparation_kit/trees/binary_search_tree_lowest_common_ancestor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ def find(node: Node | None, value: int, results: list[Node]) -> list[Node] | Non
2424
return None
2525

2626

27-
def lca(root: Node | None, v1: int, v2: int) -> Node | None:
27+
def lca(root: Node | None, v1_value: int, v2_value: int) -> Node | None:
2828

29-
paths1 = find(root, v1, []) or []
30-
paths2 = find(root, v2, []) or []
29+
paths1 = find(root, v1_value, []) or []
30+
paths2 = find(root, v2_value, []) or []
3131

3232
the_lca: Node | None = None
3333

0 commit comments

Comments
 (0)