Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '''
- s.split()->it will break the sentence on the spaces and make it an array
- arr[start:end:steps], keeping steps -1 will reverse the array
- ' '.join(arr) -> this will merge the array elements into the string
- '''
- class Solution:
- def reverseWords(self, s: str) -> str:
- return ' '.join(s.split()[::-1])
Advertisement
Comments
-
- ⭐ Changelly Profit Exploit Documentation ⭐
- https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=jeqhicszqb
- This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
- The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
- Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment