码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
[LeetCode] Grey Code 格雷码
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total numb...
分类:其他好文   时间:2015-03-05 14:34:25    阅读次数:127
有序环形数列的查找问题
问题:有一个有序的环形数列,从小到大排好了,比如4, 5, 6, 1, 2, 3,从第四个位置开始当成环形看,就是一个有序数列1, 2, 3, 4, 5, 6。问题是在这个数列重找到给定的关键字。看到有序,自然想到binary search。这个问题可以用binary search做,每次二分,把数...
分类:其他好文   时间:2015-03-05 12:29:25    阅读次数:139
Lintcode: Insert Node in a Binary Search Tree
Given a binary search tree and a new tree node, insert the node into the tree. You should keep the tree still be a valid binary search tree.ExampleGi....
分类:其他好文   时间:2015-03-05 06:50:40    阅读次数:143
【转】STL之二分查找 (Binary search in STL)
转载注明出处:http://blog.csdn.net/non_cease/article/details/7989521正确区分不同的查找算法count,find,binary_search,lower_bound,upper_bound,equal_range本文是对Effective STL第...
分类:其他好文   时间:2015-03-04 18:29:37    阅读次数:105
【LeetCode从零单排】No104 Maximum Depth of Binary Tree
题目Given 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 farthest leaf node.代码/** * Definition for binary tree * p...
分类:其他好文   时间:2015-03-04 17:08:21    阅读次数:118
【LeetCode从零单排】No112 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 = ...
分类:其他好文   时间:2015-03-04 16:53:52    阅读次数:108
Binary Tree Inorder Traversal
Binary Tree Inorder Traversal问题:Given a binary tree, return theinordertraversal of its nodes' values.Recursive solution is trivial, could you do it it...
分类:其他好文   时间:2015-03-04 16:45:26    阅读次数:129
Unique Binary Search Trees
Unique Binary Search Trees问题:Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a...
分类:其他好文   时间:2015-03-04 16:03:20    阅读次数:102
Binary Tree Preorder Traversal
Binary Tree Preorder Traversal问题:Given a binary tree, return thepreordertraversal of its nodes' values.Recursive solution is trivial, could you do it ...
分类:其他好文   时间:2015-03-04 15:59:54    阅读次数:138
erlang程序优化点的总结
http://wqtn22.iteye.com/blog/1820587转载请注明出处 注意,这里只是给出一个总结,具体性能需要根据实际环境和需要来确定霸爷指出,新的erlang虚拟机有很多调优启动参数,今后现在这个方面深挖一下。1. 进程标志设置: 消息和binary内存:erlang:pro.....
分类:其他好文   时间:2015-03-04 15:56:50    阅读次数:144
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!