We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 050824a commit 26d0845Copy full SHA for 26d0845
1 file changed
data_structures/arrays/max_and_min.py
@@ -20,7 +20,8 @@ def find_max_min(arr: list[int]) -> tuple[int | None, int | None]:
20
arr (list[int]): The list of numbers.
21
22
Returns:
23
- tuple[int | None, int | None]: (maximum, minimum), or (None, None) if the list is empty.
+ tuple[int | None, int | None]: A tuple of (maximum, minimum),
24
+ or (None, None) if the list is empty.
25
"""
26
if not arr:
27
raise ValueError("find_max_min() arg is an empty list")
0 commit comments