摘要: Given a binary tree, design an algorithm which creates a linked list of all the nodes at each depth (e.g., if you have a tree with depth D, you'll hav 阅读全文
posted @ 2017-10-22 14:15 jasminemzy 阅读(311) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root). Exam 阅读全文
posted @ 2017-10-22 13:44 jasminemzy 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). Example Given binary tree {3,9,2 阅读全文
posted @ 2017-10-22 06:52 jasminemzy 阅读(170) 评论(0) 推荐(0) 编辑