Skip to content

Commit fd4d376

Browse files
authored
Update find-longest-special-substring-that-occurs-thrice-i.cpp
1 parent d344670 commit fd4d376

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

C++/find-longest-special-substring-that-occurs-thrice-i.cpp

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

44
// string, hash table
@@ -25,8 +25,8 @@ class Solution {
2525
}
2626
};
2727

28-
// Time: O(n^2 + 26)
29-
// Space: O(n^2 + 26)
28+
// Time: O(26 + n^2)
29+
// Space: O(26 + n^2)
3030
// string, brute force, freq table
3131
class Solution2 {
3232
public:

0 commit comments

Comments
 (0)