Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. class Solution(object):
  2. def reverseWords(self, s):
  3. """
  4. :type s: str
  5. :rtype: str
  6. """
  7. wordArr = s.split()
  8. return " ".join(wordArr[::-1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement