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
Ashwin -
João Vitor -
M -
Vortico -
Top comments (0)