摘要: 91 Decode Waysdp解法 O(1) spaceclass Solution: # @param {string} s # @return {integer} def numDecodings(self, s): if s == "" or s[0] == ... 阅读全文
posted @ 2015-07-29 15:33 dapanshe 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 022 Generate Parentheses纯递归解法class Solution: def __init__(self): self.ans = [] def generateParenthesis(self, n): self.help(n, ... 阅读全文
posted @ 2015-07-29 14:25 dapanshe 阅读(122) 评论(0) 推荐(0) 编辑