吾生也有涯,而知也无涯 。以有涯随无涯,殆已!
class Solution: def reverseWords(self, s: str) -> str: return ' '.join(s.split()[::-1])
No comments:
Post a Comment