- 博客(9)
- 资源 (11)
- 收藏
- 关注
原创 平方和公式推导
12+22+32+…+n2=n(n+1)(2n+1)/6,在高中数学中是用数学归纳法证明的一个命题,没有给出其直接的推导过程。其实,该求和公式的直接推导并不复杂,也没有超出初中数学内容。 设:S=12+22+32+…+n2 另设:S1=12+22+32+…+n2+(n+1)2+(n+2)2+(n+
2009-11-24 15:52:00 27313
原创 从1-10000中找出2个缺失的数
一个算法题:从1-10000中随机去掉两个数,用最小的时间复杂度找出这个数。这是我今天笔试的一道题,当时没答好!(思路 只想对了一半,哎…………) 先用公式n(n+1)/2算出1-10000的总和 , 用公式n(n+1)(2n+1)/6算出1-10000的平方和,然后扫描那9998个数,每扫到一个就从平方和中减去这个数的平方,扫描一个就从总和中减去这个数。 知道两个数的和和平方
2009-11-24 14:55:00 2821 1
转载 ORACLE常用数值函数、转换函数、字符串函数介绍
本文并不准备介绍全部的oracle函数,当前情势下,俺也还没这个时间,需要学习的东西太多了,要把多数时间花在学习经常能用上的技术方面:),所以如果是准备深入了解所有oracle函数的朋友,还是去关注:Oracle SQL Reference官方文档更靠谱一些。 本文更多将会介绍三思在日常中经常会用到的,或者虽然很少用到,但是感觉挺有意思的一些函数。分二类介绍,分别是: 著名函数篇
2009-11-20 16:31:00 946
原创 char nchar varchar2 nvarchar2 区别-Oracle (varchar2 max 4K, 2K汉字)
char固定长度,非 Unicode 字符数据,长度为 n 个字节。n 的取值范围为 1 至 8,000,存储大小是 n 个字节。char 的 SQL 2003 同义词为 character。varchar2可变长度,非 Unicode 字符数据。n 的取值范围为 1 至 8,000。max 指示最大存储大小是 2^31-1 个字节。存储大小是输入数据的实际长度加 2 个字节。所输入数据的长度可
2009-11-20 15:26:00 1184
转载 DB2 命令大全
连接数据库: connect to [数据库名] user [操作用户名] using [密码] 创建缓冲池(8K): create bufferpool ibmdefault8k IMMEDIATE SIZE 5000 PAGESIZE 8 K ;创建缓冲池(16K)(OA_DIVERTASKRECORD): create bufferpool
2009-11-18 10:40:00 559
转载 java面试题及答案(基础题122道,代码题19道)
JAVA相关基础知识1、面向对象的特征有哪些方面 1.抽象:抽象就是忽略一个主题中与当前目标无关的那些方面,以便更充分地注意与当前目标有关的方面。抽象并不打算了解全部问题,而只是选择其中的一部分,暂时不用部分细节。抽象包括两个方面,一是过程抽象,二是数据抽象。2.继承:继承是一种联结类的层次模型,并且允许和鼓励类的重用,它提供了一种明确表述共性的方法。对象的一个新类可以从现有的类中派生,这
2009-11-12 08:03:00 638
转载 Java正则表达式的解释说明
表达式意义:1.字符x 字符 x。例如a表示字符a// 反斜线字符。在书写时要写为////。(注意:因为java在第一次解析时,把////解析成正则表达式//,在第二次解析时再解析为/,所以凡是不是1.1列举到的转义字符,包括1.1的//,而又带有/的都要写两次)/0n 带有八进制值 0的字符 n (0 /0nn 带有八进制值 0
2009-11-11 15:45:00 545
转载 理解cookie和session机制之间的区别与联系
具体来说cookie机制采用的是在客户端保持状态的方案。它是在用户端的会话状态的存贮机制,他需要用户打开客户端的cookie支持。cookie的作用就是为了解决HTTP协议无状态的缺陷所作的努力.而session机制采用的是一种在客户端与服务器之间保持状态的解决方案。同时我们也看到,由于采用服务器端保持状态的方案在客户端也需要保存一个标识,所以session机制可能需要借助于cookie机
2009-11-11 11:11:00 696
转载 单点登录(SSO)—简介
单点登录SSO(Single Sign-On)是身份管理中的一部分。SSO的一种较为通俗的定义是:SSO是指访问同一服务器不同应用中的受保护资源的同一用户,只需要登录一次,即通过一个应用中的安全验证后,再访问其他应用中的受保护资源时,不再需要重新登录验证。 目前的企业应用环境中,往往有很多的应用系统,如办公自动化(OA)系统,财务管理系统,档案管理系统,信息查询系统
2009-11-09 15:27:00 526
Android A Programmer's Guide(Android程序员向导) 英文版
2010-06-27
spring3.x 权威开发指南中文版
2010-05-24
PL/SQL 中文版
2009-08-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人