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
Azanul Haque -
M B -
izam-mohammed -
whchi -
Top comments (0)