您的位置:首页 > 其它

LeetCode "488. Zuma Game" !

2017-01-22 12:08 537 查看
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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: