Skip to content

Commit 3418c80

Browse files
committed
Formatting Fixes
1 parent 00b17c4 commit 3418c80

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

strings/min_window_substring.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ def min_window(search_str: str, target_letters: str) -> str:
1414
in the window, and shifting the start of the window right until the
1515
window no longer contains every target character.
1616
17-
Time complexity: O(target_count + search_len) ->
18-
The algorithm checks a dictionary at most twice for each character
17+
Time complexity: O(target_count + search_len) ->
18+
The algorithm checks a dictionary at most twice for each character
1919
in search_str.
2020
21-
Space complexity: O(search_len) ->
22-
The primary contributer to additional space is the building of a
21+
Space complexity: O(search_len) ->
22+
The primary contributer to additional space is the building of a
2323
dictionary using the search string.
2424
"""
25-
25+
2626
target_count = len(target_letters)
2727
search_len = len(search_str)
2828

@@ -84,4 +84,4 @@ def min_window(search_str: str, target_letters: str) -> str:
8484
if (exists):
8585
return search_str[min_window[0]:min_window[1]]
8686
else:
87-
return ""
87+
return ""

0 commit comments

Comments
 (0)