摘要: Binary Tree Preorder TraversalTotal Accepted:4309Total Submissions:12898My SubmissionsGiven a binary tree, return thepreordertraversal of its nodes' v... 阅读全文
posted @ 2013-12-14 19:36 海滨银枪小霸王 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 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 an... 阅读全文
posted @ 2013-12-14 04:23 海滨银枪小霸王 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 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 le... 阅读全文
posted @ 2013-12-14 04:17 海滨银枪小霸王 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Single NumberTotal Accepted:6830Total Submissions:14936My SubmissionsGiven an array of integers, every element appearstwiceexcept for one. Find that s... 阅读全文
posted @ 2013-12-14 03:05 海滨银枪小霸王 阅读(128) 评论(0) 推荐(0) 编辑