Skip to content

Commit eaa5121

Browse files
committed
reviewed
1 parent a7db73d commit eaa5121

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

data_structures/arrays/dutch_national_flag.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
def dutch_national_flag(arr):
1+
def dutch_national_flag(arr: list[int]) -> list[int]:
22
"""
33
Sorts an array containing only 0s, 1s and 2s
44
55
Args:
6-
arr(list): The input array (containing only 0s, 1s and 2s)
6+
arr(list[int]): The input array (containing only 0s, 1s and 2s)
77
88
Returns:
9-
list: Sorted array
9+
list[int]: Sorted array
1010
"""
1111

1212
low, mid, high = 0, 0, len(arr) - 1

0 commit comments

Comments
 (0)