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 d9e3da9 commit ce4c2aaCopy full SHA for ce4c2aa
src/main/java/com/fishercoder/solutions/_58.java
@@ -1,17 +1,5 @@
1
package com.fishercoder.solutions;
2
-/**
3
- * 58. Length of Last Word
4
- *
5
- * Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.
6
- * If the last word does not exist, return 0.
7
8
- Note: A word is defined as a character sequence consists of non-space characters only.
9
-
10
- For example,
11
- Given s = "Hello World",
12
- return 5.
13
14
- */
15
public class _58 {
16
17
public static class Solution1 {
0 commit comments