码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
CMake 学习笔记 —— 初见
project 用法: project(projectname [CXX] [C] [Java]) 指定项目名称和支持的语言,支持的语言列表可以忽略,默认支持所有语言 这个指令隐式定义了两个cmake变量: <projectname>_BINARY_DIR <projectname>_SOU...
分类:其他好文   时间:2015-09-12 16:23:32    阅读次数:155
POJ 1565 Skew Binary(简单的问题)
【简要题意】:第二个是数字系统的代表性的定义。而给了你这个号码系统提示的形式和十进制转换之间的关系。现在给你一些这样的系统。让你把它变成2二进制输出。【分析】:当中 base[k] = 2^(k+1)-1 = 2(2^k-1)+1 = 2base[k-1]+1// 200K 0Ms#include#...
分类:其他好文   时间:2015-09-12 14:42:11    阅读次数:120
ProtocalBuffer_数据结构(转thanks)
一、简单消息编码布局: 让我们先看一下下面的消息定义示例: message Test1 { required int32 a = 1; } 假设我们在应用程序中将字段a的值设置为150(十进制),此后再将该对象序列化到Binary文件中,你可以看到文件的数据为: 08 96 01 这...
分类:其他好文   时间:2015-09-11 18:54:48    阅读次数:568
*Add Binary
Given two binary strings, return their sum (also a binary string).For example,a="11"b="1"Return"100". 1 public String addBinary(String a, String b...
分类:其他好文   时间:2015-09-11 08:00:35    阅读次数:139
[LeetCode#270] Closest Binary Search Tree Value
Problem:Given a non-empty binary search tree and a target value, find the value in the BST that is closest to the target.Note:Given target value is a ...
分类:其他好文   时间:2015-09-11 06:38:44    阅读次数:201
linux 文件类型
一.文件类型1文件种类普通文件(regular file ) :纯文本档(ASCII), 二进制文件(binary),数据格式文件(data)。2目录(directory)3符号链接文件(link) : 和Windows中的快捷方式有一定类似。4设备(device) :区块(block)设备,储存数...
分类:系统相关   时间:2015-09-11 01:31:26    阅读次数:195
LeetCode#116 Populating Next Right Pointers in Each Node
Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; }Populate each next pointer to point to its nex...
分类:其他好文   时间:2015-09-10 22:28:50    阅读次数:252
浅谈数据结构-平衡二叉树
平衡二叉树(Balanced Binary Tree)是二叉查找树的一个进化体,也是第一个引入平衡概念的二叉树。1962年,G.M. Adelson-Velsky 和 E.M. Landis发明了这棵树,所以它又叫AVL树。平衡二叉树要求对于每一个节点来说,它的左右子树的高度之差不能超过1,如果插入...
分类:其他好文   时间:2015-09-10 20:57:26    阅读次数:247
【LeetCode】190. Reverse Bits
题目:Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as00000010100101000001111010011100), retu...
分类:其他好文   时间:2015-09-10 12:39:35    阅读次数:102
binary、char类型数据互转函数
最近在做项目时,需要把binary类型数据转换成字符类型的数据,发现原来可以这样写,记录下来供需要的童靴参考。IF OBJECT_ID('fn_BinaryToChar') IS NOT NULL DROP FUNCTION fn_BinaryToCharGO/* =================...
分类:其他好文   时间:2015-09-10 11:10:10    阅读次数:198
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!