Skip to content

Commit 9b13221

Browse files
Simplify comment in remove_leftmost_occurrence.
Shortened the comment above the `find` method to make it more concise while preserving clarity. This improves readability without altering functionality.
1 parent e19d04a commit 9b13221

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sliding Window/minimum_window_substring.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def min_window(s: str, t: str) -> str:
7070
return s[left:right + 1]
7171

7272
def remove_leftmost_occurrence(s, char):
73-
# Find the position of the leftmost occurrence of the character
73+
# Find the position of the leftmost occurrence
7474
index = s.find(char)
7575

7676
# If the character is found, remove it using slicing

0 commit comments

Comments
 (0)