码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
LeetCode First Bad Version
原题链接在这里:https://leetcode.com/problems/first-bad-version/尽可能少的使用API, 就想到Binary Search. 查中点是不是,若是bad version, 就在左边继续查,若不是bad version, 就在右边继续查找。Note: 求中....
分类:其他好文   时间:2015-09-26 07:00:38    阅读次数:200
STL 源代码分析 算法 stl_heap.h
本文senlie原版的。转载请保留此地址:http://blog.csdn.net/zhengsenlieheap-------------------------------------------------------------------------binary heap 是一种全然二叉树...
分类:编程语言   时间:2015-09-25 17:55:38    阅读次数:263
Binary Tree Inorder Traversal
/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { v...
分类:其他好文   时间:2015-09-25 13:19:53    阅读次数:104
lightning mdb 源代码分析系列(3)
本系列前两章已经描述了系统架构以及系统构建的基础内存映射,本章将详细描述lmdb的核心,外存B+Tree的操作。本文将从基本原理、内存操作方式、外存操作方式以及LMDB中的相关函数等几方面描述LMDB中关于B+Tree的使用方式。 介绍 动态查找树主要有:二叉查找树(Binary Search Tr...
分类:数据库   时间:2015-09-25 07:21:50    阅读次数:445
(leetcode)Binary Tree Level Order Traversal II
Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For exa...
分类:其他好文   时间:2015-09-24 16:18:09    阅读次数:184
(leetcode)Binary Tree Level Order Traversal
Binary Tree Level Order TraversalMy SubmissionsQuestionSolutionTotal Accepted:67360Total Submissions:228717Difficulty:EasyGiven a binary tree, return ...
分类:其他好文   时间:2015-09-24 15:59:45    阅读次数:206
Maximum Depth of Binary Tree 解答
QuestionGiven 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 the far...
分类:其他好文   时间:2015-09-24 10:56:30    阅读次数:128
Binary Tree Zigzag Level Order Traversal 解答
QuestionGiven a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then right to left for the next leve...
分类:其他好文   时间:2015-09-24 08:16:34    阅读次数:218
Binary Tree Level Order Traversal II 解答
QuestionGiven a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level by level from leaf to root)...
分类:其他好文   时间:2015-09-24 07:05:02    阅读次数:212
LeetCode Reverse Bits
原题链接在这里:https://leetcode.com/problems/reverse-bits/新学了一种API, Integer.reverse()可以直接返回binary的reverse. 参考链接:http://www.tutorialspoint.com/java/lang/integ...
分类:其他好文   时间:2015-09-24 00:42:11    阅读次数:133
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!