Python
小屁孩2013
这个作者很懒,什么都没留下…
展开
-
[LeetCode] Same Tree
Problem : Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical and the nodes have the same value.原创 2014-04-30 14:12:00 · 521 阅读 · 0 评论 -
[LeetCode] Maximum Depth of Binary Tree
Problem : Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.原创 2014-04-29 21:17:33 · 2073 阅读 · 0 评论 -
[LeetCode] Single Number
Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it wit原创 2014-04-29 20:46:34 · 588 阅读 · 0 评论