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.
2 parents 5c2c205 + 7025101 commit 0d62124Copy full SHA for 0d62124
2018.12.3-leetcode58/kiritocly.md
@@ -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