码迷,mamicode.com
首页 >  
搜索关键字:d. gukiz and binary    ( 11754个结果
Binary Tree Level Order Traversal leetcode java
题目:Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree....
分类:编程语言   时间:2014-08-05 05:18:28    阅读次数:242
Binary Tree Level Order Traversal II leetcode java
题目: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).F....
分类:编程语言   时间:2014-08-05 05:18:08    阅读次数:340
Binary Tree ZigZag Level Order Traversal leetcode java
题目:Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level ....
分类:编程语言   时间:2014-08-05 05:17:38    阅读次数:311
Recover Binary Search Tree leetcode java
题目:Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) space....
分类:编程语言   时间:2014-08-05 05:17:28    阅读次数:265
LeetCode "Recover Binary Search Tree"
An example of in-order traversal application. My intuition is that, we have to serialize it into an array and check, but in-order traversal does exact...
分类:其他好文   时间:2014-08-05 03:03:48    阅读次数:241
LeetCode——Populating Next Right Pointers in Each Node II
Follow up for problem "Populating Next Right Pointers in Each Node". What if the given tree could be any binary tree? Would your previous solution still work? Note: You may only use constant ...
分类:其他好文   时间:2014-08-05 00:51:38    阅读次数:249
[LeetCode 题解]: Symmetric Tree
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ ...
分类:其他好文   时间:2014-08-05 00:37:38    阅读次数:233
[LeetCode] Binary Tree Zigzag Level Order Traversal(bfs)
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and ...
分类:其他好文   时间:2014-08-05 00:18:28    阅读次数:225
[LeetCode] Construct Binary Tree from Preorder and Inorder Traversal
Given preorder and inorder traversal of a tree, construct the binary tree.Note: You may assume that duplicates do not exist in the tree./** * Definiti...
分类:其他好文   时间:2014-08-05 00:01:38    阅读次数:271
[LeetCode] Construct Binary Tree from Inorder and Postorder Traversal
Given inorder and postorder traversal of a tree, construct the binary tree.Note: You may assume that duplicates do not exist in the tree.class Solutio...
分类:其他好文   时间:2014-08-04 23:57:18    阅读次数:476
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!