Alwaldend
Blog
Projects
Docs
Toggle theme
Light
Dark
Auto
Docs
Misc
Leetcode submissions
2023-07-18 16:41:40 +0300 MSK
2023-07-18 16:41:40 +0300 MSK
Reverse Words in a String
Tags:
Generated
Leetcode_submission
Links
https://leetcode.com/submissions/detail/997596378/
Code
class
Solution
:
def
reverseWords
(
self
,
s
:
str
)
->
str
:
return
" "
.
join
(
s
.
split
()[::
-
1
])