码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
leetcode笔记:Search in Rotated Sorted Array
这道题出现了旋转的情况,即比第一个元素小的元素可能出现在数值的后半段或者不出现。因此,可以考虑采用变种的二分查找,即在比较中间元素与目标之前,先比较第一个元素与目标的关系,该题的难度主要在于左右边界的确定。...
分类:其他好文   时间:2015-07-24 18:25:12    阅读次数:136
leetcode笔记:Search in Rotated Sorted Array
这道题出现了旋转的情况,即比第一个元素小的元素可能出现在数值的后半段或者不出现。因此,可以考虑采用变种的二分查找,即在比较中间元素与目标之前,先比较第一个元素与目标的关系,该题的难点在于确定其边界问题。...
分类:其他好文   时间:2015-07-24 18:16:45    阅读次数:150
msh格式解析
参考自http://geuz.org/gmsh/doc/texinfo/gmsh.html#MSH-binary-file-format $MeshFormat version-number file-type data-size $EndMeshFormat $PhysicalNames number-of-names physical-dimension physical-number ...
分类:其他好文   时间:2015-07-24 14:18:30    阅读次数:173
Erlang的Unicode支持
在R13A中, Erlang加入了对Unicode的支持。本文涉及到的数据类型包括:list, binary, 涉及到的模块包括stdlib/unicode, stdlib/io, kernel/file。BinaryBinary的type属性增加了utf相关的type:utf8, utf16, u...
分类:其他好文   时间:2015-07-24 12:39:35    阅读次数:116
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 s...
分类:其他好文   时间:2015-07-23 23:36:50    阅读次数:123
树状数组求区间最值
树状数组求区间最值树状数组(Binary Index Tree)利用二进制的一些性质巧妙的划分区间,是一种编程,时间和空间上都十分理想的求区间和的算法,同样我们可以利用树状数组优美的区间划分方法来求一个序列的最值约定以 num[] 表示原数组, 以 idx[] 表示索引数组,Lowbit(x)=x&...
分类:编程语言   时间:2015-07-23 23:36:03    阅读次数:284
poj2255 (二叉树遍历)
poj2255二叉树遍历Time Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluDescriptionLittle Valentine liked playing with binary trees very much...
分类:其他好文   时间:2015-07-23 23:29:03    阅读次数:234
Binary Search and Quicksort
NetBSD 的两段 ANSI C 库函数源码采撷
分类:其他好文   时间:2015-07-23 23:10:31    阅读次数:193
LeetCode#67 Add Binary
Problem Definition:Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100".Solution: crack it in a ...
分类:其他好文   时间:2015-07-23 21:34:47    阅读次数:104
LeetCode—— Binary Tree Traversal
LeetCode上 二叉树遍历的3道题 #Binary Tree Preorder Traversal #Binary Tree Inorder Traversal #Binary Tree Postorder Traversal...
分类:其他好文   时间:2015-07-23 20:02:57    阅读次数:113
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!