Ad
  • Default User Avatar

    Nice solution! Would be better to reserve exactly 26 entries for each letter possible. Would also be better not to allocate a new hashmap every time frequency is called, even if not as terse.