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
Ajika Angelo -
Emmanuel Kariithi -
404_CHRONICLES -
Pranav Bakare -
Top comments (0)