From 85fcd387ccff8ff8d76af47a4a0ede4fa13f8164 Mon Sep 17 00:00:00 2001 From: Wilson Strasilla Date: Thu, 17 Oct 2024 15:28:24 -0700 Subject: [PATCH] Fixed incorrect function name in test cases --- strings/min_window_substring.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/strings/min_window_substring.py b/strings/min_window_substring.py index 5441d2684..d19ff433c 100644 --- a/strings/min_window_substring.py +++ b/strings/min_window_substring.py @@ -5,9 +5,9 @@ def min_window(search_str: str, target_letters: str) -> str: all target char_dict. >>> min_window("Hello World", "lWl") - "llo W" + 'llo W' >>> min_window("Hello World", "f") - "" + '' This solution uses a sliding window, alternating between shifting the end of the window right until all target char_dict are contained @@ -28,7 +28,7 @@ def min_window(search_str: str, target_letters: str) -> str: # Return if not possible due to string lengths. if search_len < target_count: - return "" + return '' # Build dictionary with counts for each letter in target_letters char_dict = {} @@ -82,4 +82,4 @@ def min_window(search_str: str, target_letters: str) -> str: if exists: return search_str[min_window[0] : min_window[1]] else: - return "" + return ''