Skip to content

elminson/Anagrams

Repository files navigation

  • Files
  1. anagrams.php

  2. class/StringUtils.php

  • Functions in Class StringUtils

    1. anagrams (return all anagrams if exist)
    2. is_anagram (detect if 2 string are anagrams
    3. is_anagram_another_way (not in use in this test just for ilustrate another solution)
  1. run composer install

    #php anagrams.php "tree" ["terse","steer"]

    Array used
    $words = ["tumblr", "terse", "rest", "tears", "steer", "street"];

About

return all anagrams if exist

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages