Reverse Words in a String Description link Solution See Code Code O(n) class Solution(object): def reverseWords(self, s): """ :type s: str :rtype: str """ return ' '.join(s.split()[::-1])