西西河

主题:【纪事】失败的苹果面试(上) -- landlord

共:💬133 🌺776 新:
全看分页树展 · 主题 跟帖
家园 dynamic programming

This is a typical dynamic programming question.

The key is to avoid redundant work by reusing partial results. You can find lots of tutorials and examples on the web.


本帖一共被 1 帖 引用 (帖内工具实现)
全看分页树展 · 主题 跟帖


有趣有益,互惠互利;开阔视野,博采众长。
虚拟的网络,真实的人。天南地北客,相逢皆朋友

Copyright © cchere 西西河