Ad
  • Default User Avatar

    I tried copying this code over onto my Vscode and tried to run in line by line. But it doesn't seem to increase the speed of calculating the fibonacci?

    I'm not even able to run fibonacci(50) as it just takes too long to load any answer.

    Am i supposed to run the function differently? Reading up on decorators, it seems that running
    fibonacci(50) is good enough to have the memoization implemented???

    Hope someone can answer this question, thanks.