Skip to content

Fix sphinx/build_docs warnings for greedy_methods #12463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3 changes: 2 additions & 1 deletion greedy_methods/smallest_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ def smallest_range(nums: list[list[int]]) -> list[int]:
Uses min heap for efficiency. The range includes at least one number from each list.

Args:
nums: List of k sorted integer lists.
`nums`: List of k sorted integer lists.

Returns:
list: Smallest range as a two-element list.

Examples:

>>> smallest_range([[4, 10, 15, 24, 26], [0, 9, 12, 20], [5, 18, 22, 30]])
[20, 24]
>>> smallest_range([[1, 2, 3], [1, 2, 3], [1, 2, 3]])
Expand Down
Loading