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
MySQL的安装配置(win7 64-bit) 转,整理。 MySQL 版本是 mysql-noinstall-5.1.66-winx64.zip(免安装版) mysql-workbench-gpl-5.2.44-win32.msi mysql-connector-java-5.1.22 mysql 配置数据库编码为utf-8(my....
分类:
数据库 时间:
2015-03-05 09:21:09
阅读次数:
203
查看linux机器是32位还是64位的方法:
file /sbin/init 或者 file /bin/ls
/sbin/init: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
如果显...
分类:
系统相关 时间:
2015-03-04 17:05:06
阅读次数:
185
树状数组(Binary Indexed Tree(BIT), Fenwick Tree)是一个查询和修改复杂度都为log(n)的数据结构。主要用于查询任意两位之间的所有元素之和,但是每次只能修改一个元素的值;经过简单修改可以在log(n)的复杂度下进行范围修改,但是这时只能查询其中一个元素的值。这种...
分类:
编程语言 时间:
2015-03-04 00:59:17
阅读次数:
294
就是整体二分啦。。。然后我们把一个矩形的询问拆成四个,按x排序按y加入bit中就可以O(n * logn^2)做出来啦~ 1 /************************************************************** 2 Problem: 1176 ...
分类:
其他好文 时间:
2015-03-02 23:48:57
阅读次数:
242
一、数据类型: 整数:int,bigint,smallint 小数:float,real,decimal(长度,精度),numeric(长度,精度) 字符:char(n),varchar(n) 8000英文字符,4000汉字 text——大文本。 逻辑:bit 0,1/true/false 二进制类...
分类:
数据库 时间:
2015-03-02 20:45:35
阅读次数:
181
<?php
//所谓的Bit-map就是用一个bit位来标记某个元素对应的Value, 而Key即是该元素。由于采用了Bit为单位来存储数据,因此在存储空间方面,可以大大节省。
/*
若 N =1 ; 申请内存空间为 int a[2] ;
假设需要排序或者查找的总数N=10000000,那么我们需要申请内存空间的大小为int a[1 + N/32],其中:a[0]在内存中占32为可以对应十...
分类:
Web程序 时间:
2015-03-02 16:58:44
阅读次数:
147
1. Get location ofthe version of .NET and type of platform (e.g. 64 bit).A typical example, might be: C:\Windows\Microsoft.NET\Framework\v4.0.30319.In...
分类:
Web程序 时间:
2015-03-01 20:58:04
阅读次数:
127
Oozie安装
一.准备
默认hadoop,maven,mysql已经安装,我的hadoop是2.5.0
下载oozie安装包:oozie-4.1.0.tar.gz http://mirror.bit.edu.cn/apache/oozie/
下载ext-2.2.zip
http://oozie.apache.org/docs/4.0.1/DG_QuickStart.ht...
分类:
其他好文 时间:
2015-02-28 14:45:23
阅读次数:
2933
Windows 平台监听程序无法启动 报TNS-12560 TNS-00530
问题现象--01:
C:\Users\Administrator>lsnrctl start
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 12-12月-2014 4:50
Copyright (c) 1991, ...