Dynamic Programming For Coding Interviews: A Bottom-Up Approach To Problem Solving
Use attributes for filter ! | |
Google books | books.google.com |
---|---|
Originally published | January 16, 2017 |
Authors | Kamal Rawat |
Meenakshi | |
Date of Reg. | |
Date of Upd. | |
ID | 2007526 |
About Dynamic Programming For Coding Interviews: A Bottom-Up Approach To Problem Solving
I wanted to compute 80th term of the Fibonacci series. I wrote the rampant recursive function,int fib(int n){ return (1==n || 2==n) ? 1 : fib(n-1) + fib(n-2);}and waited for the result. I wait… and wait… and wait…With an 8GB RAM and an Intel i5 CPU, why is it taking so long? . . .