We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 211eb6e commit 77b5464Copy full SHA for 77b5464
lcof/面试题48. 最长不含重复字符的子字符串/README.md
@@ -229,7 +229,7 @@ class Solution {
229
var j = 0
230
var vis = Set<Character>()
231
let sArray = Array(s)
232
-
+
233
for i in 0..<sArray.count {
234
while vis.contains(sArray[i]) {
235
vis.remove(sArray[j])
@@ -238,7 +238,7 @@ class Solution {
238
vis.insert(sArray[i])
239
ans = max(ans, i - j + 1)
240
}
241
242
return ans
243
244
0 commit comments