Challenge#2 Reverse words in a phrase

Sorry for the delay in coming up with a new challenge. It’s been a busy few weeks. Last challenge was about partial sort. This week’s challenge will be about reversing words in a phrase. It’s a common challenge and many of you have probably seen it already.

Task:

Given a string with some words, produce a string in reverse order.

Example:

q)f "you must be outta your damn mind"
"mind damn your outta be must you"
Also, they should not be taken with grape fruit and other ED medicines to let it work well and stay away from bad habits. cheap levitra india icks.org It provides planned and much cost effective solution for the cure viagra free order of ED. Others will simply ask you for the canadian viagra sales. Making discover for source buying cialis in canada use of Kamagra Fizz a male may respond to erotic activation within a sex experience.

P.S. Bonus points for getting the reference!

Post your answers as comments.

Update: This was a pretty simple challenge. Here is the answer:

” ” sv reverse ” ” vs “you must be outta your damn mind”

Join the Conversation

4 Comments

    1. Nice, I had forgotten about just using ” “. I was trying to use ssr and vs to break down the string.

Leave a comment

Your email address will not be published. Required fields are marked *