Skip to content

Instantly share code, notes, and snippets.

@dannysmith
Created November 14, 2018 01:13
Show Gist options
  • Select an option

  • Save dannysmith/5596417dcb5f62886e4ef362aa78c3fa to your computer and use it in GitHub Desktop.

Select an option

Save dannysmith/5596417dcb5f62886e4ef362aa78c3fa to your computer and use it in GitHub Desktop.
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