摘要: Description:Given a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then right to left for the next ... 阅读全文
posted @ 2015-06-19 23:33 Rosanne 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Description:Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).For example:Given binar... 阅读全文
posted @ 2015-06-19 23:29 Rosanne 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Description:Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: ... 阅读全文
posted @ 2015-06-19 16:49 Rosanne 阅读(176) 评论(0) 推荐(0) 编辑
摘要: Description:Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1Code: 1 TreeNode* invertTr... 阅读全文
posted @ 2015-06-19 11:09 Rosanne 阅读(110) 评论(0) 推荐(0) 编辑
摘要: Description:Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given the fo... 阅读全文
posted @ 2015-06-19 10:25 Rosanne 阅读(141) 评论(0) 推荐(0) 编辑