Skip to content

Commit 66c54f2

Browse files
yanglbmeidoocs
authored andcommitted
style: format code and docs with prettier
1 parent a3b677b commit 66c54f2

File tree

1 file changed

+3
-3
lines changed
  • lcof/面试题50. 第一个只出现一次的字符

1 file changed

+3
-3
lines changed

lcof/面试题50. 第一个只出现一次的字符/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -200,17 +200,17 @@ class Solution {
200200
func firstUniqChar(_ s: String) -> Character {
201201
var count = [Int](repeating: 0, count: 26)
202202
let aAsciiValue = Int(Character("a").asciiValue!)
203-
203+
204204
for char in s {
205205
count[Int(char.asciiValue!) - aAsciiValue] += 1
206206
}
207-
207+
208208
for char in s {
209209
if count[Int(char.asciiValue!) - aAsciiValue] == 1 {
210210
return char
211211
}
212212
}
213-
213+
214214
return " "
215215
}
216216
}

0 commit comments

Comments
 (0)