Are they anagrams?

A code exercise of about 10 minutes: read the statement, solve «Are they anagrams?» in the browser and get a review like in a real interview.

Code · 10 min
Loading…

Statement

Write isAnagram(a, b): return true if b has exactly the same characters as a, each the same number of times, in any order. It's case-sensitive, spaces count and any character may appear (é, ñ). Do it without sorting: by counting.