# @param s, a string
# @return a string
def reverseWords(self, s):
result = " ".join(s.split()[::-1])
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.