码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
【LeetCode-面试算法经典-Java实现】【104-Maximum Depth of Binary Tree(二叉树的最大深度)】
【104-Maximum Depth of Binary Tree(二叉树的最大深度)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a binary tree, find its maximum depth.   The maximum depth is the number of nodes along the longest path from th...
分类:编程语言   时间:2015-08-08 07:59:24    阅读次数:126
【LeetCode-面试算法经典-Java实现】【102-Binary Tree Level Order Traversal(二叉树层序遍历)】
【102-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...
分类:编程语言   时间:2015-08-08 07:58:06    阅读次数:259
8.7 114 Flatten Binary Tree to Linked List
Question:Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The fl...
分类:其他好文   时间:2015-08-08 01:10:06    阅读次数:130
[leedcode 222] Count Complete Tree Nodes
Given acompletebinary tree, count the number of nodes.Definition of a complete binary tree fromWikipedia:In a complete binary tree every level, except...
分类:其他好文   时间:2015-08-07 23:53:56    阅读次数:135
4.7 Lowest Common Ancestor of a Binary Search Tree 二叉树的最小共同父节点
4.7 Design an algorithm and write code to find the first common ancestor of two nodes in a binary tree. Avoid storing additional nodes in a data struc...
分类:其他好文   时间:2015-08-07 23:47:47    阅读次数:208
android Caused by: java.lang.IllegalArgumentException: Binary XML file line #7: Must specify unique
Caused by: java.lang.IllegalArgumentException: Binary XML file line #7: Must specify unique android:id, android:tag, or have a parent with an id for com.mama.fragment.Fragment1...
分类:移动开发   时间:2015-08-07 22:27:42    阅读次数:169
[leedcode 221] Maximal Square
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given the following matr...
分类:其他好文   时间:2015-08-07 21:54:10    阅读次数:116
二分查找的学习
来自:http://www.acmerblog.com/ubiquitous-binary-search-5345.html我们都知道二分查找算法,实际上二分查找以及其扩展应用是很广泛的。这里收集了一些和二分查找有关的有趣问题。强烈建议大家看完问题后最小化浏览器,先尝试自己去解决,然后再看代码,问题...
分类:其他好文   时间:2015-08-07 19:00:43    阅读次数:120
(medium)LeetCode 222.Count Complete Tree Nodes
Given acompletebinary tree, count the number of nodes.Definition of a complete binary tree fromWikipedia:In a complete binary tree every level, except...
分类:其他好文   时间:2015-08-07 19:00:01    阅读次数:139
[LeetCode] Binary Tree Zigzag Level Order Traversal
Binary Tree Zigzag Level Order Traversal 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 alte...
分类:其他好文   时间:2015-08-07 14:52:28    阅读次数:117
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!