码迷,mamicode.com
首页 >  
搜索关键字:bit manipulation    ( 10794个结果
Leetcode: Set Matrix Zeroes
一次过,空间复杂度为O(m+n), 下一次做的时候寻找constant space solution。用boolean array也可以,用bit vector可能会更节省 1 import java.util.*; 2 3 public class Solution { 4 public...
分类:其他好文   时间:2014-05-23 08:30:28    阅读次数:278
基本sql语句
11:33 2013/6/26SQL语句:DML(Data Manipulation Language 数据操作语言)语句:insert update delete selectDDL(Data Difinition Language 数据定义语言)语句:create table/ create d...
分类:数据库   时间:2014-05-23 05:20:28    阅读次数:339
linux sticky bit 目录权限 rwt权限
今天ls -al /tmp 看到的是 rwxrwxrwt很惊讶这个t是什么,怎么不是x或者-呢?搜了下发现:这个t代表是所谓的sticky bit。sticky bit: 该位可以理解为防删除位. 一个文件是否可以被某用户删除, 主要取决于该文件所属的组是否对该用户具有写权限. 如果没有写权限, 则...
分类:系统相关   时间:2014-05-23 03:15:29    阅读次数:366
Apache+Php配置(亲测可用)
Apache+Php配置(亲测可用) 一Apache配置: 1.下载 httpd-2.2.xx-win64.rar,Apache 64-bit 的压缩包,点击这里下载 (Apache官方没有64位的安装包) 2、将压缩包解压到C盘根目录: \httpd-2.2-x64 3、以管理员身份运行CMD:,进入Apache的bin目录,运行安装命令 httpd-k install 4、修改web配置,c:\httpd-2.2-x64\conf目录下的httpd.conf 端口号默认为80,如有冲突可改其他,这里...
分类:Web程序   时间:2014-05-22 18:32:34    阅读次数:447
什么是Mbps、Kbps、bps、kb、mb及其换算和区别
Mbps 即 Milionbit pro second(百万位每秒);Kbps 即 Kilobit pro second(千位每秒);bps 即 bit pro second(位每秒);速度单位,bit即比特,通常用b(小写)表示,指一位二进制位,Milionbit=1000Kilobit=1000...
分类:其他好文   时间:2014-05-22 15:26:24    阅读次数:244
C实现判断两个IP是否在同一个子网
在进行网络程序的时候避免不了对给定IP是否跨子网段进行判断。相关原理倒是简单, 贴出相关代码: 1 #include 2 #include 3 #include 4 #include 5 #include 6 7 #define ALL_BIT 32 /* ip address have...
分类:其他好文   时间:2014-05-22 14:59:04    阅读次数:237
常用sql语句
11:33 2013/6/26 SQL语句: DML(Data Manipulation Language 数据操作语言)语句:insert update delete selectDDL(Data Difinition Language 数据定义语言)语句:create table/ create...
分类:数据库   时间:2014-05-22 13:50:16    阅读次数:442
计算机的存储单位
位 bit (比特)(Binary Digits):存放一位二进制数,即 0 或 1,最小的存储单位。字节 byte:8个二进制位为一个字节(B),最常用的单位。计算机存储单位一般用B,KB,MB,GB,TB,PB,EB,ZB,YB,BB来表示,它们之间的关系是:1KB (Kilobyte 千字节)...
分类:其他好文   时间:2014-05-22 00:58:58    阅读次数:209
Matlab编程基础
原文:Matlab编程基础平台:Win7 64 bit,Matlab R2014a(8.3) “Matlab”是“Matrix Laboratory” 的缩写,中文“矩阵实验室”,是强大的数学工具。本文侧重于Matlab的编程语言侧面,讲述Matlab的基本语法,以及用Matlab语言进行程序设计。...
分类:其他好文   时间:2014-05-22 00:17:34    阅读次数:642
Bash String Manipulation Examples – Length, Substring, Find and Replace--reference
In bash shell, when you use a dollar sign followed by a variable name, shell expands the variable with its value. This feature of shell is called para...
分类:其他好文   时间:2014-05-21 18:32:32    阅读次数:332
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!