首页 > 代码库 > LeetCode "488. Zuma Game" !

LeetCode "488. Zuma Game" !

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" !