Skip to content

Commit 07646c4

Browse files
authored
Create 最后一个单词的长度.md
1 parent 0f46471 commit 07646c4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
给定一个仅包含大小写字母和空格 ' ' 的字符串,返回其最后一个单词的长度。
2+
3+
如果不存在最后一个单词,请返回 0 。
4+
5+
说明:一个单词是指由字母组成,但不包含任何空格的字符串。

0 commit comments

Comments
 (0)