Skip to content

Commit d91ca8b

Browse files
committed
2 parents c70fe18 + 2b1370e commit d91ca8b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

data_structures/arrays/merge_two_sorted_arrays.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@
22
https://en.wikipedia.org/wiki/Merge_algorithm
33
"""
44

5-
def merge_two_sorted_arrays(nums1: list[int], nums2: list[int]) -> list[int]:
65

6+
def merge_two_sorted_arrays(nums1: list[int], nums2: list[int]) -> list[int]:
77
"""
8-
Merge two sorted arrays.
8+
Merge two sorted arrays.
99
10-
Args:
11-
nums1: The first array.
12-
nums2: The second array.
10+
Args:
11+
nums1: The first array.
12+
nums2: The second array.
1313
14-
Returns:
15-
The merged sorted array.
14+
Returns:
15+
The merged sorted array.
1616
17-
Examples:
18-
>>> merge_two_sorted_arrays([1,5,7], [0,4,9])
19-
[0,1,4,5,7,9]
17+
Examples:
18+
>>> merge_two_sorted_arrays([1,5,7], [0,4,9])
19+
[0,1,4,5,7,9]
2020
21-
>>> merge_two_sorted_arrays([-11,5,45], [0,5,9])
22-
[-11,0,5,5,9,45]
21+
>>> merge_two_sorted_arrays([-11,5,45], [0,5,9])
22+
[-11,0,5,5,9,45]
2323
"""
2424

2525
if not nums1 and not nums2:

0 commit comments

Comments
 (0)