Skip to content

Commit

Permalink
Update sliding_window.py
Browse files Browse the repository at this point in the history
  • Loading branch information
OmMahajan29 authored Sep 25, 2024
1 parent efa26a8 commit deb5cf1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions greedy_methods/sliding_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def sliding_window(input_string: str) -> int:
>>> sliding_window("abccba")
3
"""
# Type annotation for char_index_map: keys are single characters (str), values are indices (int)
char_index_map: dict[str, int] = {}
left = 0
max_len = 0
Expand All @@ -39,7 +38,6 @@ def sliding_window(input_string: str) -> int:
max_len = max(max_len, right - left + 1)
return max_len


if __name__ == "__main__":
import doctest

Expand Down

0 comments on commit deb5cf1

Please sign in to comment.