Skip to content

Commit

Permalink
challenge: fix formatting in longest_substring.py to pass CI check
Browse files Browse the repository at this point in the history
  • Loading branch information
imwaymaran committed Jan 9, 2025
1 parent fd1a975 commit e52dbaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solutions/longest_substring.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def longest_substring(s: str) -> int:
assert isinstance(s, str), "Given input must be a string."

# Assert that the string length is within the allowed limit
assert 0 <= len(s) <= 5 * 10**4, "Input length must be between 0 and 50,000 chars."
assert 0 <= len(s) <= 5 * 10**4, "Input length must be between 0 and 50 000 chars."

# Use a sliding window strategy to track unique characters in the current substring
char_set = set()
Expand Down

0 comments on commit e52dbaf

Please sign in to comment.