Glossary: Algorithms Beyond the Basics in Java
memoization
Also written: memo, memoize, memo map
Saving each answer in a map the first time you work it out, so a repeated call is just a lookup. Java has no `@cache`, so you keep the memo yourself.
Glossary: Algorithms Beyond the Basics in Java
Also written: memo, memoize, memo map
Saving each answer in a map the first time you work it out, so a repeated call is just a lookup. Java has no `@cache`, so you keep the memo yourself.