Update str-longest-non-repeating.py

This commit is contained in:
bt3gl 2023-07-30 15:56:13 -07:00 committed by GitHub
parent 72c11a1b44
commit bed6d221fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,8 @@
### find the length of the longest substring without repeating characters #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# author: bt3gl
# find the length of the longest substring without repeating characters
def length_longest_substring(s: str) -> int: def length_longest_substring(s: str) -> int: