Skip to content

Commit c2b53c2

Browse files
authored
Update binary-string-with-substrings-representing-1-to-n.cpp
1 parent 7d3a257 commit c2b53c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/binary-string-with-substrings-representing-1-to-n.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Time: O(S^2)
1+
// Time: O(n^2), n is the length of S
22
// Space: O(1)
33

44
class Solution {

0 commit comments

Comments
 (0)