Alwaldend
Docs
Light
Dark
Auto
Docs
Misc
Leetcode submissions
2023-07-08 15:25:39 +0000 UTC
2023-07-08 15:25:39 +0000 UTC
Length of Last Word
Tags:
Generated
Leetcode_submission
Links
https://leetcode.com/submissions/detail/989388793/
Code
class
Solution
:
def
lengthOfLastWord
(self, s: str)
->
int:
return
len(s
.
split()[
-
1
])