class Solution:
def reverseWords(self, s: str) -> str:
return ' '.join(reversed(s.split()))
leetcode
challenge
Here is the link for the problem:
https://leetcode.com/problems/reverse-words-in-a-string/
class Solution:
def reverseWords(self, s: str) -> str:
return ' '.join(reversed(s.split()))
Here is the link for the problem:
https://leetcode.com/problems/reverse-words-in-a-string/
For further actions, you may consider blocking this person and/or reporting abuse
Jagroop Singh -
Pavel Loginov -
Mwenda Harun Mbaabu -
Qian Li -
Top comments (0)