Skip to content

Commit 1bd5f05

Browse files
authored
Update maximum-length-substring-with-two-occurrences.cpp
1 parent beef640 commit 1bd5f05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

C++/maximum-length-substring-with-two-occurrences.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Time: O(n)
1+
// Time: O(n + 26)
22
// Space: O(26)
33

44
// freq table, sliding window, two pointers
@@ -26,7 +26,7 @@ class Solution {
2626
}
2727
};
2828

29-
// Time: O(n)
29+
// Time: O(n + 26)
3030
// Space: O(26)
3131
// freq table, sliding window, two pointers
3232
class Solution2 {

0 commit comments

Comments
 (0)