Skip to content

Commit 0f042b2

Browse files
Fix extra whitespace in dictionary deletion statement
Removed unnecessary whitespace in the `del` statement for improved code readability. No functional changes were made to the logic or behavior of the program.
1 parent d0d3f6d commit 0f042b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sliding Window/permutation_in_string.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def check_inclusion(s1: str, s2: str) -> bool:
3333
# Delete the leftmost character from 'window_count' if
3434
# its frequency reaches 0
3535
if window_count[s2[left]] == 0:
36-
del window_count[s2[left]]
36+
del window_count[s2[left]]
3737

3838
# Check if the current window matches 's1_count'
3939
if window_count == s1_count:

0 commit comments

Comments
 (0)