Created
November 14, 2018 01:13
-
-
Save dannysmith/5596417dcb5f62886e4ef362aa78c3fa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def reverse_alternate(string) | |
| # 1. Break the string down into an array of words. | |
| # 2. | |
| end | |
| reverse_alternate('one two three four') #=> 'one owt three ruof' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment