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 f0717cb commit 00a3b8eCopy full SHA for 00a3b8e
csharp/0058-length-of-last-word.cs
@@ -11,7 +11,7 @@ public int LengthOfLastWord(string s) {
11
var result = 0;
12
var i = s.Length - 1;
13
while (s[i] == ' ') --i;
14
- for (; i >=0; --i) {
+ for (; i >= 0; --i) {
15
if (s[i] == ' ') {
16
return result;
17
}
0 commit comments