Skip to content

Commit a4fd7a7

Browse files
committed
Update longest-substring-with-at-most-k-distinct-characters.py
1 parent b47d870 commit a4fd7a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/longest-substring-with-at-most-k-distinct-characters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Time: O(n^2)
1+
# Time: O(n)
22
# Space: O(1)
33

44
class Solution(object):

0 commit comments

Comments
 (0)