
Anagram Solving in Python – Part 3 : Memoization
In our last post we showed how to recurse our anagram solver in a function. Next we will optimize that function with a well known technique that is very easy to implement: memoization. First let’s look at our current solution, which very, very thoroughly searches through all possible anagrams: more…