- 1、本文档被系统程序自动判定探测到侵权嫌疑,本站暂时做下架处理。
- 2、如果您确认为侵权,可联系本站左侧在线QQ客服请求删除。我们会保证在24小时内做出处理,应急电话:400-050-0827。
- 3、此文档由网友上传,因疑似侵权的原因,本站不提供该文档下载,只提供部分内容试读。如果您是出版社/作者,看到后可认领文档,您也可以联系本站进行批量认领。
ProgrammingInterviewProblems:
DynamicProgramming(with
solutionsinPython)
LeonardoRossi
ProgrammingInterviewProblems:
DynamicProgramming(with
solutionsinPython)
1.Preface
2.Generaladvicefortheinterview
3.TheFibonaccisequence
1.Solution1:bruteforce,O(2n)time
2.Solution2:dynamicprogramming,top-down
3.Solution2:dynamicprogramming,bottom-up
4.Optimalstockmarketstrategy
1.Solution1:dynamicprogramming,top-down,O(n)time
2.Solution2:dynamicprogramming,bottom-up,O(n)time
3.Variation:limitedinvestmentbudget
4.Variation:limitednumberoftransactions
5.Change-making
1.Clarificationquestions
2.Solution1:dynamicprogramming,top-down,O(nv)time
3.Solution2:dynamicprogramming,bottom-up,O(nv)time
4.Solution3:dynamicprogramming+BFS,bottom-up,O(nv
)time
5.Variant:countthenumberofwaystopay(permutations)
1.Solution:dynamic-programming,top-down,O(nv)
6.Variant:countthenumberofwaystopay(combinations)
1.Solution:dynamic-programming,top-down,O(nv)
6.Numberofexpressionswithatargetresult
1.Clarificationquestions
2.Solution1:brute-force,O(2n)time
3.Solution2:dynamicprogramming,top-down,O(nS)time
4.Solution3:dynamicprogramming+BFS,bottom-up,O(nS
)time
5.Unittests
7.Partitioningasetintoequal-sumparts
1.Clarificationquestions
2.Solution1:dynamicprogramming,top-down,O(nS)time
8.Splittingastringwithoutspacesintowords
1.Clarificationquestions
2.Solution1:dynamicprogramming,top-down,O(nw
您可能关注的文档
- 成人彩色书籍30情人节公司-英文名称- ADULT COLORING BOOK 30 Valentines Day Co - ColoringCraze.pdf
- 成为瓦格纳-英文名称- Being Wagner - Simon Callow.pdf
- 承诺-英文名称- The Promise - Danielle Steel.pdf
- 承诺-英文名称- To Promise - Laura Scott.pdf
- 城市化与古代中心的宗教-英文名称- Urbanization and Religion in Ancient Centr - David M Carballo.pdf
- 城市生活-英文名称- City Living - Will McIntosh.pdf
- 城市园林的作用——对Cul的实践-英文名称- Role of Urban Gardening A Practice to Cul - Aiden Henry.pdf
- 程序设计语言c逐步gui-英文名称- programming language c a step by step gui - Susanta Bouri.pdf
- 吃得好,吃得少快捷方便-英文名称- Eat Well for Less Quick and Easy Meals - Jo Scarratt-Jones.pdf
- 吃得好,少一点家庭盛宴-英文名称- Eat Well for Less Family Feasts on a Budg - Jo Scarratt-Jones.pdf
- 吃什么都很容易的女孩家庭R-英文名称- The Girl Who Ate Everything Easy Family R - Christy Denney.pdf
- 痴呆症-英文名称- Dementia-Friendly Communities Why We Need - PhD Susan H McFadden.pdf
- 迟到了Shuffleboard The Way Over The Hi-英文名称- Late For Shuffleboard The Way Over The Hi - M K Scott.pdf
- 持久的自由持久的声音-英文名称- Enduring Freedom Enduring Voices - Michael G Walling.pdf
- 赤脚比赛回归基础-英文名称- Barefoot Contessa Back to Basics - Ina Garten.pdf
- 冲过沙滩过圣诞节-英文名称- Dashing through the Sand Beach Christmas - Katherine Hayton.pdf
- 充满爱-英文名称- Bursting With Love - Melissa Foster.pdf
最近下载
- 专题05 解三角形(10类题型全归纳)-2025年高考数学二轮热点题型归纳与变式演练(北京专用)(解析版).docx VIP
- 加氢实操考试112.doc VIP
- 汽油加氢装置操工高级理论知识试卷.doc VIP
- 初中物理校本课程教材《身边的物理学》.docx
- 日立电梯HPM(3-4MS)故障检测说明.pptx
- 道德与法治人教版二年级上册版教案教学设计.docx
- 科技背景下蜜雪冰城如何用数据驱动决策提升业绩.docx VIP
- 湖北师范大学 826计算机软件技术基础 2016年考研专业课真题.pdf VIP
- 蜜雪冰城数据驱动下的营销策略变革.docx VIP
- 机电安装工程合同标准版(业主版).doc VIP
文档评论(0)