Yeah, that's right, memo, not memor. I asked my self this when I first saw it. Simply put, memoization can be described as the caching of the results of a sub-step within an algorithm.

That makes it perfect for recursive functions, as they waste plenty of time recomputing everything, so that's what I tried it on, a recursive function.

And what recursive function is better known than a function to calculate the Fibonacci sequence?

After learning about memoization and how to do it, I spent hours perfecting a memoization wrapper which I then used on a JavaScript bigInt Fibonacci function.

I then laughed at the speed differences.

I calculated 1000 iterations of the Fibonacci sequence in 1 second. Without it, it took forever. You can try any number less than 200,000 without choosing to loop, and you'll receive an answer within 10 seconds, guaranteed or I'll refund you.

## What is memoization?

Yeah, that's right,

, notmemo. I asked my self this when I first saw it. Simply put, memoization can be described asmemorthe caching of the results of a sub-step within an algorithm.That makes it perfect for recursive functions, as they waste plenty of time recomputing everything, so that's what I tried it on, a recursive function.

And what recursive function is better known than a function to calculate the

Fibonacci sequence?After learning about memoization and how to do it, I spent hours perfecting a memoization wrapper which I then used on a JavaScript bigInt Fibonacci function.

I then

laughedat the speed differences.I calculated

1000iterations of the Fibonacci sequencein 1 second. Without it, it took forever. You can try any number less than200,000without choosing to loop, and you'll receive an answerwithin 10 seconds, guaranteed or I'll refund you.Try it out yourself!

https://MemoizedFibonacci.studentfires.repl.run

Some links I looked at:

https://www.freecodecamp.org/news/understanding-memoize-in-javascript-51d07d19430ehttps://dictionary.babylon-software.com/dynamic%20optimization## YEAS

t

@Highwayman Thanks?

@StudentFires your welcome may your bread rise effortlessly

@Highwayman

1) I'm quoting you on that.

2) Can you ping an admin/mod to move this?

3) Thanks!

@Highwayman The "t" is on the next line, was that an accident?

@StudentFires

1) I’m glad :P

2) hmm ngl I have no idea who’s actually a mod on this site,

Uhhhmmm @theangryepicbanana

3) yw!

@StudentFires no, it was not. The t makes the YEAS into YEAST :P

@Highwayman I know that, that's why I asked if it was an accident that it was on the next line, not that there was a random t.

@StudentFires ahh, well then in that case yea I put the t for the yeast XP

@StudentFires also thank you for noticing the t lol