購物比價找書網找車網
FindBook  
 有 1 項符合

Dynamic Programming for Coding Interviews

的圖書
Dynamic Programming for Coding Interviews Dynamic Programming for Coding Interviews

作者:Meenakshi & Kamal Rawat 
出版社:Notion Press
出版日期:2017-02-20
語言:英文   
圖書選購
型式價格供應商所屬目錄
電子書
$ 120
樂天KOBO 樂天KOBO
電腦
圖書介紹 - 資料來源:樂天KOBO   評分:
圖書名稱:Dynamic Programming for Coding Interviews
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? 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 computes 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.
贊助商廣告
 
城邦讀書花園 - 今日66折
貓咪的食萬個為什麼 圖解「吃」的學問與科學
出版日期:1900-01-01
66折: $ 449 
TAAZE 讀冊生活 - 今日66折
真希望國中數學這樣教:暢銷20萬冊!6天搞懂3年數學關鍵原理,跟著東大教授學,解題力大提升!
作者:西成活裕
出版社:美藝學苑
出版日期:2020-02-06
66折: $ 263 
 
博客來 - 暢銷排行榜
耳鳴的腦內大革命
作者:賴仁淙
出版社:時報出版
出版日期:2024-07-09
$ 276 
Taaze 讀冊生活 - 暢銷排行榜
學會K線賺3億(增訂版)—打敗大盤、戰勝投資心理的月風流技術分析
作者:月風
出版社:FUN學
出版日期:2022-05-01
$ 300 
博客來 - 暢銷排行榜
讀懂古人的痛,就能跳過現代的坑:史上最潮的國學經典
作者:林俐君(綠君麻麻)
出版社:圓神
出版日期:2024-08-01
$ 339 
博客來 - 暢銷排行榜
你願意,人生就會值得:蔡康永的情商課3
作者:蔡康永
出版社:如何
出版日期:2024-08-01
$ 316 
 
博客來 - 新書排行榜
讀懂古人的痛,就能跳過現代的坑:史上最潮的國學經典
作者:林俐君(綠君麻麻)
出版社:圓神
出版日期:2024-08-01
$ 339 
博客來 - 新書排行榜
戰略情人 (6)
出版日期:2024-09-12
$ 110 
 

©2024 FindBook.com.tw -  購物比價  找書網  找車網  服務條款  隱私權政策