@@ -0,0 +1,322 @@
+def reverseWords(s):%0A    %22%22%22%0A    :type s: str%0A    :rtype: str%0A    %22%22%22%0A    if not s:%0A        return s%0A    return ' '.join(%5Bw%5B::-1%5D for w in s.split(' ')%5D)%0A%0A%0Adef test_reverseWords():%0A    assert reverseWords(%22Let's take LeetCode contest%22) == %22s'teL ekat edoCteeL tsetnoc%22%0A%0A%0Aif __name__ == '__main__':%0A    test_reverseWords()%0A

Reverse Words in a String III