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 bd9ba9e commit 7b820b8Copy full SHA for 7b820b8
58-length-of-last-word/length-of-last-word.py
@@ -0,0 +1,3 @@
1
+class Solution:
2
+ def lengthOfLastWord(self, s: str) -> int:
3
+ return len(s.strip().split()[-1])
0 commit comments