码迷,mamicode.com
首页 >  
搜索关键字:subsets bit    ( 10933个结果
关于flash擦除的方法
一般的Flash,只允许写时将1变成0,而不允许0变成1;仅当擦除时将0变成1.所以写全0xff是没什么意义的以前对flash只能进行一次写很困惑,这句话解释了原因。norflash就是 对bit位进行nor的flash,nand flash就是对bit位进行!and 的flash
分类:其他好文   时间:2014-05-09 12:40:33    阅读次数:263
Leetcode | Subsets I & II
Subsets IGiven a set of distinct integers, S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set m...
分类:其他好文   时间:2014-05-07 11:13:33    阅读次数:299
Gray 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 number of bits in the code, print the sequence of gr...
分类:其他好文   时间:2014-05-07 06:10:17    阅读次数:370
[bitset用法]SDUT 2841 Bit Problem
来源:点击打开链接 可以模拟过,不过练习这个题的目的是学习stl中的bitset,一个神奇的二进制容器. 和vector/MAP等容器一样,bitset具备stl库函数的几乎所有特性,同时加入了一些自己的东西,对二进制处理十分便利,尤其是在找零和找一的方面. ps:遍历的话,bitset默认是从后往前遍历的.所以不要自己再倒过来了. 一些库函数及用法的实例: 典型的bitset初...
分类:其他好文   时间:2014-05-07 04:36:52    阅读次数:331
ubuntu 14.04 VSFTPD 匿名FTP服务器 配置文件
ubuntu 14.04 VSFTPD 匿名FTP服务器 配置文件 可以提供上传,下载,修改,等操作 # Example config file /etc/vsftpd.conf # # The default compiled in settings are fairly paranoid. This sample file # loosens things up a bit, to mak...
分类:其他好文   时间:2014-05-07 04:26:57    阅读次数:488
Leetcode: Reverse Integer
一次通过,它的spoiler里面的提示有两个:1. 末尾为0的情况,这个考虑到了2.Did you notice that the reversed integer might overflow? Assume the input is a 32-bit integer, then the reve...
分类:其他好文   时间:2014-05-06 11:10:45    阅读次数:356
c++ stl atomic_flag 例子
Author:DriverMonkey Mail:bookworepeng@Hotmail.com Phone:13410905075 QQ:196568501 测试环境:Win7 64 bit 编译器:gcc 4.81 测试代码- /*************************************************...
分类:编程语言   时间:2014-05-05 21:22:48    阅读次数:358
Lowest Bit------HDOJ杭电1196(想法很重要)
Problem Description Given an positive integer A (1 For example, given A = 26, we can write A in binary form as 11010, so the lowest bit of A is 10, so the output should be 2. Another example...
分类:其他好文   时间:2014-05-05 13:22:39    阅读次数:394
Qt入门 - 全局数据类型
1 typedef signed char qint8; /* 8 bit signed */ 2 typedef unsigned char quint8; /* 8 bit unsigned */ 3 typedef short qint16; /* 16 bit signed */ 4 ty....
分类:其他好文   时间:2014-05-05 11:39:45    阅读次数:503
Leetcode:Subsets 求数组的所有子集
Given a set of distinct integers, S, return all possible subsets. Note: Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets. For exa...
分类:其他好文   时间:2014-05-03 15:47:53    阅读次数:289
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!