5 ms·
> "Produce a dictionary of the number of times each letter occurs in each word." is heading the wrong direction. You want an encoding that does not care about t
by malisper 5y ago
> "Produce a dictionary of the number of times each letter occurs in each word." is heading the wrong direction. You want an encoding that does not care about the number of times each letter occurs in each word.
How so? "aab" is an anagram of "baa", but they are not anagrams of "ab".
- Supermancho 5y ago100000 00000 00000 00000 00000 100000 00000 00000 00000 00000 010000 00000 00000 00000 00000 aab and baa 100000 00000 00000 00000 00000 010000 00000 00000 00000 00000 000000 00000 00000 00000 00000 ab You aren't "counting" the number of characters. You're making an encoding that includes that information, without the aggregation. The aggregation is irrelevant as is the order of duplicate characters.