Tabulating Fibonacci Numbers
Explore how tabulation can improve the efficiency of finding the nth Fibonacci number.
We'll cover the following
The tabulation approach is like filling up a table from the start. Let’s now find the Fibonacci number using bottom-up tabulation. This approach uses iteration and can essentially be thought of as recursive in reverse.
Tabulated version 1
Have a look at the tabulated code in C#:
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.