Skip to content

Commit 075f66f

Browse files
Remove unused variable right from initialization.
The `right` variable was declared but never used in the code. Its removal simplifies the initialization block and eliminates unnecessary clutter.
1 parent 23331b2 commit 075f66f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Sliding Window/minimum_window_substring.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ def min_window(s: str, t: str) -> str:
2222

2323
# Initialize window pointers and other variables
2424
left = 0
25-
right = 0
2625
matched_characters = 0
2726
window_counts = defaultdict(int)
2827
window = ''

0 commit comments

Comments
 (0)