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
Kevin Meneses González -
Omar Urbano | LightningChart -
Lakshmi Pritha Nadesan -
Furkan Gözükara -
Top comments (0)