Skip to content

Commit a5ea313

Browse files
committed
Runtime: 0 ms (Top 100.00%) | Memory: 41.7 MB (Top 83.09%)
1 parent 4444262 commit a5ea313

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/algorithms/L/Length of Last Word/Length of Last Word.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 0 ms (Top 100.00%) | Memory: 41.7 MB (Top 83.09%)
12
class Solution {
23
public int lengthOfLastWord(String s) {
34
int j=s.length()-1,len=0; boolean flag=true;
@@ -8,4 +9,4 @@ public int lengthOfLastWord(String s) {
89
}
910
return len;
1011
}
11-
}
12+
}

0 commit comments

Comments
 (0)