Skip to content

Latest commit

 

History

History
24 lines (13 loc) · 492 Bytes

readme.md

File metadata and controls

24 lines (13 loc) · 492 Bytes
  • 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"];