Anagram

  • string

Check if two strings are anagrams of each other. An anagram uses the same characters in the same quantity. Ignore spaces, punctuation, and case differences.

Anagram
Examples:
  • anagram('listen', 'silent') -> true;
  • anagram('hello', 'world') -> false;
  • anagram('abc', 'abcd') -> false;
  • anagram('Listen', 'Silent') -> true;
  • anagram('conversation', 'voices rant on') -> true;

Write your solution

Loading...