Skip to content

Commit ec1a55a

Browse files
committed
Add comments for Minimum Window Substring
1 parent 06282b9 commit ec1a55a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

minimum-window-substring/KwonNayeon.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,13 @@
2323
3. 최소 길이의 윈도우 반환
2424
2525
메모:
26-
- 풀이 방법을 보고 익힘
27-
- 해시맵과 슬라이딩 윈도우 관련 다른 문제들을 풀고 이 문제 스스로 풀어보기
26+
- 관련 문제:
27+
- Two Sum (딕셔너리)
28+
- Ransom Note (Counter)
29+
- Longest Substring Without Repeating (슬라이딩 윈도우)
30+
- Permutation in String (슬라이딩 윈도우 + Counter)
31+
- Find All Anagrams in a String (슬라이딩 윈도우 + Counter)
32+
- 4, 5번 문제 먼저 풀어보기
2833
"""
2934
class Solution:
3035
def minWindow(self, s: str, t: str) -> str:
@@ -46,4 +51,3 @@ def minWindow(self, s: str, t: str) -> str:
4651
low += 1
4752

4853
return s[min_low : min_high + 1] if min_high < len(s) else ""
49-

0 commit comments

Comments
 (0)