![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
thon
hi
展开
-
leetcode-Reverse Integer-python
__author__ = 'winterhouse'class Solution: # @return an integer def reverse(self, x): temp = 0 if x > 0: while x > 0: temp *= 10 tem原创 2014-09-29 17:35:28 · 278 阅读 · 0 评论 -
leetcode-Maximum Depth of Binary Tree-python
leetcode 的 二叉树最大深度问题__author__ = 'winterhouse'# Definition for a binary tree node# class TreeNode:# def __init__(self, x):# self.val = x# self.left = None#原创 2014-09-28 16:40:06 · 589 阅读 · 0 评论