mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 15:01:08 +00:00
Merge branch 'master' of https://github.com/wistrasy/Python
This commit is contained in:
commit
d448a4e7e5
|
@ -32,7 +32,7 @@ def min_window(search_str: str, target_letters: str) -> str:
|
||||||
|
|
||||||
# Return if not possible due to string lengths.
|
# Return if not possible due to string lengths.
|
||||||
if search_len < target_count:
|
if search_len < target_count:
|
||||||
return ''
|
return ""
|
||||||
|
|
||||||
# Build dictionary with counts for each letter in target_letters
|
# Build dictionary with counts for each letter in target_letters
|
||||||
char_dict = {}
|
char_dict = {}
|
||||||
|
@ -86,4 +86,4 @@ def min_window(search_str: str, target_letters: str) -> str:
|
||||||
if exists:
|
if exists:
|
||||||
return search_str[min_window[0] : min_window[1]]
|
return search_str[min_window[0] : min_window[1]]
|
||||||
else:
|
else:
|
||||||
return ''
|
return ""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user