Skip to content

Commit b0cb13f

Browse files
Fix sphinx/build_docs warnings for greedy_methods (TheAlgorithms#12463)
* updating DIRECTORY.md * Fix sphinx/build_docs warnings for greedy_methods * Improve --------- Co-authored-by: MaximSmolskiy <[email protected]>
1 parent c5e603a commit b0cb13f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: greedy_methods/smallest_range.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ def smallest_range(nums: list[list[int]]) -> list[int]:
1414
Uses min heap for efficiency. The range includes at least one number from each list.
1515
1616
Args:
17-
nums: List of k sorted integer lists.
17+
`nums`: List of k sorted integer lists.
1818
1919
Returns:
2020
list: Smallest range as a two-element list.
2121
2222
Examples:
23+
2324
>>> smallest_range([[4, 10, 15, 24, 26], [0, 9, 12, 20], [5, 18, 22, 30]])
2425
[20, 24]
2526
>>> smallest_range([[1, 2, 3], [1, 2, 3], [1, 2, 3]])

0 commit comments

Comments
 (0)