Tony's Log

Algorithms, Distributed System, Machine Learning

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

My initial thought was recursive (a op b) evaluation, which doesn't work quite well.

The correct way is to split by op. And, we can cache calculaton result for given substr.

https://leetcode.com/discuss/48577/my-c-divide-and-conquer-recursive-solution-%26-dp-solution

posted on 2015-08-01 13:45  Tonix  阅读(145)  评论(0编辑  收藏  举报