摘要: # Definition for singly-linked list.class ListNode: def __init__(self, x): self.val = x self.next = Noneclass Solution: # @return ... 阅读全文
posted @ 2014-08-29 17:53 clq.lib 阅读(91) 评论(0) 推荐(0) 编辑
摘要: # Definition for a binary tree nodeclass TreeNode: def __init__(self, x): self.val = x self.left = None self.right = Noneclas... 阅读全文
posted @ 2014-08-29 15:51 clq.lib 阅读(155) 评论(0) 推荐(0) 编辑
摘要: class Solution: # @param matrix, a list of lists of integers # RETURN NOTHING, MODIFY matrix IN PLACE. def setZeroes(self, matrix): di... 阅读全文
posted @ 2014-08-29 15:16 clq.lib 阅读(111) 评论(0) 推荐(0) 编辑