class Solution: def reverseWords(self, s: str) -> str: return ' '.join(s.strip().split()[::-1]) Post Views: 791
留言