Skip to content

Instantly share code, notes, and snippets.

@annacruz
Last active December 16, 2015 17:39
Show Gist options
  • Save annacruz/5471394 to your computer and use it in GitHub Desktop.
Save annacruz/5471394 to your computer and use it in GitHub Desktop.
first_string = "amor"
second_string = "maro"
if (first_string.chars.sort == second_string.chars.sort)
puts "ANAGRAM"
else
puts "TRY ANOTHER WORD"
end
@weldyss
Copy link

weldyss commented Apr 27, 2013

Make tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment