码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
[LeetCode#]Binary Tree Preorder Traversal
The problem:Given a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3retur...
分类:其他好文   时间:2015-01-11 10:54:00    阅读次数:156
[LeetCode#144]Binary Tree Preorder Traversal
The problem:Given a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3retur...
分类:其他好文   时间:2015-01-11 10:53:49    阅读次数:143
[LeetCode#]Binary Tree Inorder Traversal
The problem:Given a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return...
分类:其他好文   时间:2015-01-11 06:10:46    阅读次数:226
[LeetCode#100]Same Tree
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 ...
分类:其他好文   时间:2015-01-11 06:09:38    阅读次数:186
Binary Search
public static void main(String[] args) { System.out.println(GetInsertLocation(new int[]{0,2},-1)); System.out.println(GetInsertLocati...
分类:其他好文   时间:2015-01-11 06:09:17    阅读次数:228
[LeetCode#101]Symmetric Tree
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: ...
分类:其他好文   时间:2015-01-11 06:09:14    阅读次数:197
[LeetCode#104, 111]Maximum Depth of Binary Tree, Minimum Depth of Binary Tree
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...
分类:其他好文   时间:2015-01-11 06:07:49    阅读次数:216
[LeetCode#]
The problem:Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree,...
分类:其他好文   时间:2015-01-11 00:59:13    阅读次数:287
LeetCode-114 Flatten Binary Tree to Linked List
Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened t...
分类:其他好文   时间:2015-01-11 00:53:08    阅读次数:262
Binary Tree Level Order Traversal II
Binary Tree Level Order Traversal II...
分类:其他好文   时间:2015-01-10 18:19:33    阅读次数:128
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!