• + 2 comments

    Interesting... I did it the other way: By checking the number of elements in the dictionary after the 2nd for loop, as opposed to counting the number of elements in the 2nd string that the dictionary does not contain.

    Also, I tried to experiment with a 1 loop solution, ie: count the total number of characters in the entire string, and count the number of odd occurences and divide that by 2. But that does not seem to work :(