上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 117 下一页
摘要: print all the paths of BT, the out put format should be: [“1->2->5... 阅读全文
posted @ 2020-11-13 12:26 EvanMeetTheWorld 阅读(12) 评论(0) 推荐(0)
摘要: the tree row here means the level order traverse. public List larg... 阅读全文
posted @ 2020-11-13 04:59 EvanMeetTheWorld 阅读(19) 评论(0) 推荐(0)
摘要: just use level traverse and calculate the average of each level. c... 阅读全文
posted @ 2020-11-13 04:37 EvanMeetTheWorld 阅读(23) 评论(0) 推荐(0)
摘要: Given a binary tree, return the bottom-up level order traversal of... 阅读全文
posted @ 2020-11-13 04:17 EvanMeetTheWorld 阅读(17) 评论(0) 推荐(0)
摘要: Given two non-empty binary trees s and t, check whether tree t has... 阅读全文
posted @ 2020-11-13 04:03 EvanMeetTheWorld 阅读(16) 评论(0) 推荐(0)
摘要: using recursion to solve this problem: maxDepth(root) = Math.max(m... 阅读全文
posted @ 2020-11-13 03:22 EvanMeetTheWorld 阅读(15) 评论(0) 推荐(0)
摘要: Given a binary tree, find its minimum depth. The minimum depth is ... 阅读全文
posted @ 2020-11-13 03:16 EvanMeetTheWorld 阅读(22) 评论(0) 推荐(0)
摘要: clearly we can use recursion to solve this problem. and the recurs... 阅读全文
posted @ 2020-11-13 02:31 EvanMeetTheWorld 阅读(19) 评论(0) 推荐(0)
摘要: Checking if a given tree is symmetric tree or not. so all we need ... 阅读全文
posted @ 2020-11-13 02:03 EvanMeetTheWorld 阅读(21) 评论(0) 推荐(0)
摘要: public boolean isSameTree(TreeNode p, TreeNode q) { } this is the ... 阅读全文
posted @ 2020-11-13 01:39 EvanMeetTheWorld 阅读(9) 评论(0) 推荐(0)
上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 117 下一页