8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6e8c44 commit 5bc4b39Copy full SHA for 5bc4b39
Reverse_Words_in_String.py
@@ -0,0 +1,5 @@
1
+class Solution:
2
+ # @param s : A string
3
+ # @return : A string
4
+ def reverseWords(self, s):
5
+ return ' '.join(s.split()[::-1])
0 commit comments