Skip to content

Commit 03c6154

Browse files
Update lowest_common_ancestor.py
1 parent f997aa0 commit 03c6154

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

data_structures/binary_tree/lowest_common_ancestor.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ def swap(a: int, b: int) -> tuple[int, int]:
1111
Return a tuple (b, a) when given two integers a and b
1212
>>> swap(2,3)
1313
(3, 2)
14+
>>> swap(3,4)
15+
(4, 3)
16+
>>> swap(67, 12)
17+
(12, 67)
1418
>>> swap(3,-4)
1519
(-4, 3)
1620
"""

0 commit comments

Comments
 (0)