Advertisement
Guest User

Untitled

a guest
May 24th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. ---
  2. An anagram is the result of rearranging the letters of a word to form a new
  3. word, using all the original letters exactly once; for example, the word anagram
  4. can be rearranged into nagaram.
  5.  
  6. Using PHP, JavaScript or any language of your choice, implement a function
  7. “is_anagram” that takes two words, and returns true if the second word is an
  8. anagram of the first, and false if not.
  9.  
  10. is_anagram(hello, hlleo) = true
  11. is_anagram(test, tast) = false
  12. ---
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement