Skip to content

Commit 5afd34c

Browse files
Update lowest_common_ancestor.py
1 parent 9466e87 commit 5afd34c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

data_structures/binary_tree/lowest_common_ancestor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def breadth_first_search(
105105
>>> level = [-1] * 7
106106
>>> parent = [[0] * 7 for _ in range(20)]
107107
>>> graph = {1: [2, 3], 2: [4, 5], 3: [6], 4: [], 5: [], 6: []}
108-
>>> level, parent = breadth_first_search(level, parent, 6, graph, 1)
108+
>>> level, parent = breadth_first_search(level=level, parent=parent, max_node=6, graph=graph, root=1)
109109
>>> level
110110
[-1, 0, 1, 1, 2, 2, 2]
111111
>>> parent[0]

0 commit comments

Comments
 (0)