IncredibleThings

导航

2018年7月30日 #

LeetCode-Flip Game II

摘要: 若是有一段"++", 剩下的段和"--"组合 can not win, 那么返回true. 从头到尾试遍了没找到这么一段"++", 返回false. Time Complexity: exponential. T(n) = (n-2) * T(n-2) = (n-2) * (n-4) * T(n-4 阅读全文

posted @ 2018-07-30 00:12 IncredibleThings 阅读(73) 评论(0) 推荐(0) 编辑