asrman
For life, for speech-related research
Monday, September 15, 2014
LeetCode题解整理版(二) | Coding 4 Fun
LeetCode题解整理版(二) | Coding 4 Fun
: " i = len(s) - 1
while i >= 0 and s[i] == ' ': i -= 1
j = i - 1
while j >= 0 and s[j] != ' ': j -= 1
return 0 if i < 0 else i - j"
'via Blog this'
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment