上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 20 下一页
摘要: The problem:Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The... 阅读全文
posted @ 2015-01-12 02:04 airforce 阅读(140) 评论(0) 推荐(0) 编辑
摘要: The problem: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-01-12 00:57 airforce 阅读(129) 评论(0) 推荐(0) 编辑
摘要: The problem: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-01-11 12:15 airforce 阅读(155) 评论(0) 推荐(0) 编辑
摘要: The problem:Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3retu... 阅读全文
posted @ 2015-01-11 11:07 airforce 阅读(169) 评论(0) 推荐(0) 编辑
摘要: The problem:Given a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3retur... 阅读全文
posted @ 2015-01-11 09:50 airforce 阅读(143) 评论(0) 推荐(0) 编辑
摘要: The problem:Given a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3retur... 阅读全文
posted @ 2015-01-11 09:49 airforce 阅读(163) 评论(0) 推荐(0) 编辑
摘要: The problem:Given a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return... 阅读全文
posted @ 2015-01-11 04:15 airforce 阅读(126) 评论(0) 推荐(0) 编辑
摘要: The problem: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-01-11 03:36 airforce 阅读(162) 评论(0) 推荐(0) 编辑
摘要: The 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 ... 阅读全文
posted @ 2015-01-11 02:03 airforce 阅读(132) 评论(0) 推荐(0) 编辑
摘要: The problem 1: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 t... 阅读全文
posted @ 2015-01-11 01:31 airforce 阅读(137) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 20 下一页