• usp_easy_retunsFree & Easy Returns
  • usp_best_dealsBest Deals
placeholder
Dynamic Programming for Coding Interviews : A Bottom-Up approach to problem solving
magnifyZoom

Dynamic Programming for Coding Interviews : A Bottom-Up approach to problem solving

Sorry! This product is not available.
Available Soon
Product Overview

Specifications

ISBN 139781946556691
Book DescriptionI wanted to compute 80th Term of the Fibonacci series. I wrote the rampant recursive function, In 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 br>i5 br>cpu, why is it taking so long? I terminated the process and tried computing the 40th Term. It took about a second. I put a check and was shocked to find that the above recursive function was called 204, 668, 309 times while computing the 40th Term. More than 200 million times? Is it reporting function calls or scam of some government? The dynamic programming solution computer 100th Fibonacci Term in less than fraction of a second, with a single function call, taking linear time and constant extra memory. A recursive solution, usually, neither pass all test cases in a coding competition, nor does it impress the interviewer in an interview of Company like Google, Microsoft, etc. The most difficult questions asked in competitions and interviews, are from dynamic programming. This book takes dynamic programming head-on. It first explain the concepts with simple examples and then deep dives into complex DP problems.
Book FormatPaperback
Publication Date1 January 2017
ISBN 101946556696
AuthorMeenakshi & Kamal Rawat
LanguageEnglish
Number of Pages142
placeholder
Dynamic Programming for Coding Interviews : A Bottom-Up approach to problem solving
Dynamic Programming for Coding Interviews : A Bottom-Up approach to problem solving
Sorry! This product is not available.
Available Soon

We're Always Here To Help

Reach out to us through any of these support channels

Shop On The Go

App StoreGoogle PlayHuawei App Gallery

Connect With Us

mastercardvisatabbytamaraamexcod