mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-30 16:31:08 +00:00
Added link to leetcode.
This commit is contained in:
parent
85fcd387cc
commit
0ceeb2ccec
|
@ -4,6 +4,10 @@ def min_window(search_str: str, target_letters: str) -> str:
|
||||||
return the smallest substring of the search string that contains
|
return the smallest substring of the search string that contains
|
||||||
all target char_dict.
|
all target char_dict.
|
||||||
|
|
||||||
|
This is somewhat modified from my solution to the problem
|
||||||
|
"Minimum Window Substring" on leetcode.
|
||||||
|
https://leetcode.com/problems/minimum-window-substring/description/
|
||||||
|
|
||||||
>>> min_window("Hello World", "lWl")
|
>>> min_window("Hello World", "lWl")
|
||||||
'llo W'
|
'llo W'
|
||||||
>>> min_window("Hello World", "f")
|
>>> min_window("Hello World", "f")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user