Skip to content

Instantly share code, notes, and snippets.

@satour
Created May 16, 2015 15:27
Show Gist options
  • Save satour/870c5256f991b2c9b225 to your computer and use it in GitHub Desktop.
Save satour/870c5256f991b2c9b225 to your computer and use it in GitHub Desktop.
REVERSE WORDS - CodeEval
#https://www.codeeval.com/open_challenges/8/
File.open(ARGV[0]).each_line do |line|
puts line.split(" ").reverse.join(" ")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment