Skip to content

Commit 2dab878

Browse files
svediresvedire
svedire
authored and
svedire
committed
Minor Changes
1 parent f410669 commit 2dab878

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

data_structures/binary_tree/binary_tree_mirror.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@ def binary_tree_mirror_dict(root: int, binary_tree_mirror_dictionary: dict):
1919

2020
def binary_tree_mirror(binary_tree: dict = {}, root: int = 1) -> dict:
2121
"""
22-
>>> binary_tree_mirror(1, { 1: [2,3], 2: [4,5], 3: [6,7], 7: [8,9]})
22+
>>> binary_tree_mirror({ 1: [2,3], 2: [4,5], 3: [6,7], 7: [8,9]}, 1)
2323
{1: [3, 2], 2: [5, 4], 3: [7, 6], 7: [9, 8]}
24-
>>> binary_tree_mirror(5, { 1: [2,3], 2: [4,5], 3: [6,7], 7: [8,9]})
25-
{}
26-
>>> binary_tree_mirror(1, { 1: [2,3], 2: [4,5], 3: [6,7], 4: [10,11]})
24+
>>> binary_tree_mirror({ 1: [2,3], 2: [4,5], 3: [6,7], 4: [10,11]}, 1)
2725
{1: [3, 2], 2: [5, 4], 3: [7, 6], 4: [11, 10]}
2826
"""
2927
if not binary_tree:

0 commit comments

Comments
 (0)