Skip to content

Commit 77b5464

Browse files
yanglbmeidoocs
authored andcommitted
style: format code and docs with prettier
1 parent 211eb6e commit 77b5464

File tree

1 file changed

+2
-2
lines changed
  • lcof/面试题48. 最长不含重复字符的子字符串

1 file changed

+2
-2
lines changed

lcof/面试题48. 最长不含重复字符的子字符串/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ class Solution {
229229
var j = 0
230230
var vis = Set<Character>()
231231
let sArray = Array(s)
232-
232+
233233
for i in 0..<sArray.count {
234234
while vis.contains(sArray[i]) {
235235
vis.remove(sArray[j])
@@ -238,7 +238,7 @@ class Solution {
238238
vis.insert(sArray[i])
239239
ans = max(ans, i - j + 1)
240240
}
241-
241+
242242
return ans
243243
}
244244
}

0 commit comments

Comments
 (0)