mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-18 00:07:00 +00:00
Fix sphinx/build_docs warnings for greedy_methods (#12463)
* updating DIRECTORY.md * Fix sphinx/build_docs warnings for greedy_methods * Improve --------- Co-authored-by: MaximSmolskiy <MaximSmolskiy@users.noreply.github.com>
This commit is contained in:
parent
c5e603ae42
commit
b0cb13fea5
|
@ -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]])
|
||||
|
|
Loading…
Reference in New Issue
Block a user