摘要: 087 Scramble String这道题是divide and conquer。 使用sorted可以快速判断 要不然会超时class Solution: # @param {string} s1 # @param {string} s2 # @return {boolean}... 阅读全文
posted @ 2015-08-01 11:48 dapanshe 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 037 Sudoku Solver这道题我纯暴力搜了 肯定可以优化, 懒得去看了。。。class Solution: def __init__(self): self.b = [] def solveSudoku(self, board): self.... 阅读全文
posted @ 2015-08-01 01:50 dapanshe 阅读(108) 评论(0) 推荐(0) 编辑