Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2c85704

Browse files
Add README.md for 0058.Length of Last Word
1 parent afc37f9 commit 2c85704

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## 最后一个单词的长度
2+
### 题目描述
3+
4+
给定一个仅包含大小写字母和空格 `' '` 的字符串,返回其最后一个单词的长度。
5+
6+
如果不存在最后一个单词,请返回 `0`
7+
8+
说明:一个单词是指由字母组成,但不包含任何空格的字符串。
9+
10+
示例:
11+
12+
13+
14+
```
15+
输入: "Hello World"
16+
输出: 5
17+
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /