Skip to content

Commit 0d62124

Browse files
authored
Merge pull request gzc426#5 from Mrkirito/Mrkirito-patch-5
Create kiritocly.md
2 parents 5c2c205 + 7025101 commit 0d62124

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

2018.12.3-leetcode58/kiritocly.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
private static int solution(String input) {
2+
String[] splits = input.split(" ");
3+
if (splits.length == 0) {
4+
return 0;
5+
}
6+
return splits[splits.length - 1].length();
7+
}

0 commit comments

Comments
 (0)