Memoization | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Memoization

How to use? What does mean efficency here? If I call pow(2) ten times in my program, it stored result and use it 9 times after 1 call pow(2)? I can store the the result in my variable and not call func 10 times with same argunent to make program faster, but there is no need because Phyton makes this for me automaticaly?

28th Feb 2017, 8:32 AM
Pavel
1 Answer
0
Hi Pavel! I would love to help you but I just can't understand your question maybe try rewriting it? anyway I'll be here if you need me!
28th Feb 2017, 8:24 PM
Jan Andersson
Jan Andersson - avatar