kucheasysa

Algoverse_adesh_8

Jun 3rd, 2024
536
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. class Solution:
  2.     def reverseWords(self, s: str) -> str:
  3.         a = s.split()
  4.         b=" ".join(a[::-1])
  5.         return b
Advertisement
Add Comment
Please, Sign In to add comment