Skip to content

Commit

Permalink
q151
Browse files Browse the repository at this point in the history
  • Loading branch information
isinsuarici committed Jun 27, 2023
1 parent f24943c commit 644a175
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions M_151.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
class Solution:
def reverseWords(self, s: str) -> str:
s = s.split()
return ' '.join(s[::-1])

0 comments on commit 644a175

Please sign in to comment.