码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
Binary Tree Path Sum Lintcode
Given a binary tree, find all paths that sum of the nodes in the path equals to a given number target. A valid path is from root node to any of the le ...
分类:其他好文   时间:2017-02-03 11:02:01    阅读次数:136
221. Maximal Square
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. For example, given the following ma ...
分类:其他好文   时间:2017-02-03 10:50:18    阅读次数:149
Lowest Common Ancestor III Lintcode
Given the root and two nodes in a Binary Tree. Find the lowest common ancestor(LCA) of the two nodes.The lowest common ancestor is the node with large ...
分类:其他好文   时间:2017-02-03 10:44:09    阅读次数:176
Path Sum III Leetcode
You are given a binary tree in which each node contains an integer value. Find the number of paths that sum to a given value. The path does not need t ...
分类:其他好文   时间:2017-02-03 10:35:44    阅读次数:175
lintcode 66.67.68 二叉树遍历(前序、中序、后序)
AC代码: 题目来源: http://www.lintcode.com/zh-cn/problem/binary-tree-preorder-traversal/ AC代码: 题目来源: http://www.lintcode.com/zh-cn/problem/binary-tree-inorde ...
分类:其他好文   时间:2017-02-03 00:30:11    阅读次数:304
Ch4 序列式容器(下)
4.7 heap(隐式表述:implicit representation) 4.7.1 heap概述 binary max heap作为priority queue的底层机制,原因是: binary heap:完全二叉树的结构可以保证整棵树没有节点漏洞,用array来表示这棵树的时候,只需要从ar... ...
分类:其他好文   时间:2017-02-02 20:57:37    阅读次数:288
297. Serialize and Deserialize Binary Tree
297. Serialize and Deserialize Binary Tree 297. Serialize and Deserialize Binary Tree Total Accepted: 47713 Total Submissions: 149430 Difficulty: Hard ...
分类:其他好文   时间:2017-02-02 11:15:21    阅读次数:177
Flatten Binary Tree to Linked List
Flatten Binary Tree to Linked List Given a binary tree, flatten it to a linked list in-place. For example,Given The; flattened tree should look like: ...
分类:其他好文   时间:2017-02-01 22:37:27    阅读次数:156
94. Binary Tree Inorder Traversal
94. Binary Tree Inorder Traversal Given a binary tree, return the inorder traversal of its nodes' values. For example:Given binary tree [1,null,2,3], ...
分类:其他好文   时间:2017-01-31 20:03:34    阅读次数:208
476. Number Complement
题目 Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note: The given i ...
分类:其他好文   时间:2017-01-31 14:27:56    阅读次数:253
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!