码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
[leetcode] Flatten Binary Tree to Linked List
Flatten Binary Tree to Linked ListGiven a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / ...
分类:其他好文   时间:2014-12-23 00:05:27    阅读次数:202
LeetCode: Binary Tree Level Order Traversal 解题报告
Binary Tree Level Order TraversalGiven a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level)....
分类:其他好文   时间:2014-12-22 21:05:37    阅读次数:102
03-3. Tree Traversals Again (25)
03-3. Tree Traversals Again (25)An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that whe...
分类:其他好文   时间:2014-12-22 19:14:51    阅读次数:188
BLOB (binary large object)
BLOB (binary large object),二进制大对象,是一个可以存储二进制文件的容器。在计算机中,BLOB常常是数据库中用来存储二进制文件的字段类型。BLOB是一个大文件,典型的BLOB是一张图片或一个声音文件,由于它们的尺寸,必须使用特殊的方式来处理(例如:上传、下载或者存放到一个数...
分类:其他好文   时间:2014-12-22 11:00:00    阅读次数:92
leetcode------Symmetric Tree
标题:Symmetric Tree通过率:31.1%难度:简单Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary ...
分类:其他好文   时间:2014-12-21 23:18:31    阅读次数:226
LeetCode: Validate Binary Search Tree 解题报告
Validate Binary Search TreeGiven a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtre...
分类:其他好文   时间:2014-12-21 21:55:07    阅读次数:230
[LeetCode]Add Binary
[LeetCode]Add Binary...
分类:其他好文   时间:2014-12-21 16:41:54    阅读次数:236
【LeetCode】Same Tree
题目 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 identical and the nodes have the same value. 解答 ...
分类:其他好文   时间:2014-12-21 16:38:18    阅读次数:110
【LeetCode】Binary Tree Inorder Traversal
题目 Given a binary tree, return the inorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 2 / 3 return [1,3,2]. 解答 中序遍历二叉树。 递归法...
分类:其他好文   时间:2014-12-21 15:20:58    阅读次数:178
Add Binary
该题答案如下:class Solution {public: string addBinary(string a, string b) { string::reverse_iterator itea,iteb; string result; char temp; ...
分类:其他好文   时间:2014-12-21 11:30:10    阅读次数:254
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!