码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
IOS 控件 - Swift 集成 IOS 自带 API 扫描二维码
第一步:加入框架 AVFoundation.framework目录选择targets -> Build Phases -> Link Binary with Libraries 后,加入AVFoundation.framework即可第二步:加入以下代码,并加入协议AVCaptureMetadata...
分类:移动开发   时间:2014-12-02 18:45:29    阅读次数:208
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 stil...
分类:其他好文   时间:2014-12-02 17:01:01    阅读次数:123
LeetCode[Tree]: 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 6 The flattened tree should look like: 1 2 3 4 5 6 递归算法 这种问题非常适合用...
分类:其他好文   时间:2014-12-02 15:19:59    阅读次数:168
【LeetCode】Recover Binary Search Tree
Recover Binary Search TreeTwo elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A sol...
分类:其他好文   时间:2014-12-02 13:27:30    阅读次数:154
[Leetcode] Recover Binary Search Tree
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 is ...
分类:其他好文   时间:2014-12-02 07:50:37    阅读次数:171
A.Kaw矩阵代数初步学习笔记 3. Binary Matrix Operations
“矩阵代数初步”(Introduction to MATRIX ALGEBRA)课程由Prof. A.K.Kaw(University of South Florida)设计并讲授。PDF格式学习笔记下载(Academia.edu)第3章课程讲义下载(PDF)Summary Addition of ...
分类:其他好文   时间:2014-12-02 06:41:45    阅读次数:182
【LeetCode】Same Tree (2 solutions)
Same TreeGiven two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally ide...
分类:其他好文   时间:2014-12-01 23:49:09    阅读次数:192
[LeetCode]Path Sum II
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For example: Given the below binary tree and sum = 22, 5 / \...
分类:其他好文   时间:2014-12-01 22:39:17    阅读次数:186
[LeetCode]Path Sum
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. For example: Given the below binary tree and sum...
分类:其他好文   时间:2014-12-01 22:37:27    阅读次数:146
[LeetCode]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 6 The flattened tree should look like: 1 ...
分类:其他好文   时间:2014-12-01 22:36:30    阅读次数:178
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!