2 ms·
In almost any language, a hashtable check after the base case check could be used in a similar manner.
by dotancohen 6y ago
In almost any language, a hashtable check after the base case check could be used in a similar manner.
- eru 6y agoYes. I just singled out Python, because the language is well-known, and adding the memoization is particularly straight-forward.