You are viewing a single comment's thread. Return to all comments →
Very nice solution, thanks for posting.
Can you explain why you use: count += anagram_dict[current_sorted]
count += anagram_dict[current_sorted]
As opposed to: count += 1
count += 1
I know it is right but I can't get my head around why it needs to be like that.
Many thanks, Henry
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Anagrams
You are viewing a single comment's thread. Return to all comments →
Very nice solution, thanks for posting.
Can you explain why you use:
count += anagram_dict[current_sorted]
As opposed to:
count += 1
I know it is right but I can't get my head around why it needs to be like that.
Many thanks, Henry