- Добавил: bhaer
- Дата: 23-01-2017, 10:37
- Комментариев: 0

Название: Dynamic Programming for Coding Interviews: A Bottom-Up approach to problem solving
Автор: Kamal Rawat, Meenakshi
Издательство: Notion Press
Год: 2017
Страниц: 142
Формат: PDF, EPUB, MOBI
Размер: 77 Mb
Язык: English
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…