Skip to content

Commit 4c3fc36

Browse files
committed
fix space complexity
1 parent 3469daf commit 4c3fc36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

longest-substring-without-repeating-characters/delight010.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class Solution {
22
// Time complexity O(N)
3-
// Space complexity O(min(m,n))
3+
// Space complexity O(N)
44
func lengthOfLongestSubstring(_ s: String) -> Int {
55
if s.isEmpty {
66
return 0

0 commit comments

Comments
 (0)