首页 > 其他 > 详细

LeetCode "488. Zuma Game" !

时间:2017-01-22 13:34:07      阅读:682      评论:0      收藏:0      [点我收藏+]

I prefer shorter code, so this one:
https://discuss.leetcode.com/topic/75448/memoization-c-solution

Please note: we don‘t want to be too greedy - desperately shrink the string from one side - no, that may not be a global optimal solution. So, we simply do DFS, putting char from hand into each slot - however, we always put same char, not new char, because we are trying to accumulate, not creating new one.

LeetCode "488. Zuma Game" !

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

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