The mathematical constant
I've provided an implementation of a function to approximate code.js
for you. However, it does repeated work -- identify
where the repeated work occurs and avoid it through bottom-up dynamic
programming (not memoization). Change the implementation accordingly.
Test your new functions; I've provided some basic testing code in code.test.js
but you need to go beyond that.
What is the worst-case big