Skip to content

ciaochow/FindTheAnagrams

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

#Find The Anagrams

Skill Level: Beginner
Time Limit: 15-20 minutes

An anagram is a word, phrase, or sentence formed from another by rearranging its letters:

“Angel” is an anagram of “glean.”

##Instructions Modify the detect_anagram function to detect if the words are anagrams or not.

detect_anagram('angel', 'glean') #should == true
detect_anagram('glean', 'angel') #should == true
detect_anagram('pants', 'pants') #should == true
detect_anagram('CinEmA', 'iceman') #should == true
detect_anagram('defgh8', 'g8hefd') #should == true
detect_anagram('bird', 'house') #should == false

##Resources Anagrams on Wikipedia

About

Craft an anagram detector.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%