首页 > 其他 > 详细

LeetCode "Different Ways to Add Parentheses"

时间:2015-08-01 14:10:25      阅读:248      评论:0      收藏:0      [点我收藏+]

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

LeetCode "Different Ways to Add Parentheses"

原文:http://www.cnblogs.com/tonix/p/4694006.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!