【题目】
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the linked list becomes 1->2->3->5.
Note:
Given n will ...
分类:
其他好文 时间:
2014-05-18 18:48:03
阅读次数:
269
【题目】
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra space for another array, you must do this in place with constant memory.
For example,
Given input array A ...
分类:
其他好文 时间:
2014-05-18 18:25:19
阅读次数:
272
在学习VB.NET视频时,其中有几个单元讲到了.NET的数据库设计与连接。对于数据库的连接,其实我们并不陌生,原来在做红皮书和机房收费系统的时候,我们都有接触过,可是,在我的印象中,这些关于数据库连接的知识很是模糊。对于数据库连接对象更是一知半解。
回过头来,翻了一遍红皮书中的几个实例,里面讲到了利用ADO控件来连接数据库,它涉及到的数据库连接对象有7个(connection,com...
分类:
数据库 时间:
2014-05-18 15:45:15
阅读次数:
438
PXE服务器安装与配置
原理:
PXE是在没有软驱、硬盘、CD-ROM的情况下引导计算机的一种方式,也就是BIOS将使用PXE协议从网络引导。
DHCP服务器:用来动态分配IP地址(同时分配子网掩码、网关、TFTP服务器地址、启动文件名、DNS服务器、时间服务器等等)。
TFTP服务器:用来提供启动文件的下载
简单说来,PXE服务器就是DHCP服务器+TFTP服务器。网络启动过...
分类:
系统相关 时间:
2014-05-18 10:00:03
阅读次数:
572
守护进程也是一种进程,它由如下特性:
1、生存期较长,在系统自举时启动,仅在系统关闭时终止。
2、没有控制终端,在后台运行。
系统中有很多守护进程,它们执行日常事务活动。如日志进程syslogd、web服务器httpd、邮件服务器sendmail和数据块服务器mysqld等。大多数守护进程都是以超级用户(用户ID为0)特权运行。没有一个守护进程具有控制终端,其终端设置为问号(?),终端前台进...
分类:
系统相关 时间:
2014-05-18 09:32:23
阅读次数:
366
Linux下免费邮件服务Postfix的搭建方法和配置...
分类:
系统相关 时间:
2014-05-18 09:10:48
阅读次数:
342
安装STS报错
1、具体报错如下
Failure to transfer org.codehaus.plexus:plexus-archiver:jar:1.2 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted...
分类:
其他好文 时间:
2014-05-18 07:41:32
阅读次数:
230
org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is o...
分类:
数据库 时间:
2014-05-18 06:19:21
阅读次数:
547
1. 写法轻松,更新效率高:
update table1
set field1=table2.field1,
field2=table2.field2
from table2
where table1.id=table2.id
2. 常规方式,种写法相当于一个 Left join, 以外面的where为更新条数,如果不加where就是所有记录
update table1
s...
分类:
数据库 时间:
2014-05-18 06:05:00
阅读次数:
294
from ConfigParser import RawConfigParser as rcp
if __name__ == "__main__":
cfg = rcp()
cfg.add_section("Info")
cfg.set("Info", "ImagePath", "f:/whu")
cfg.set("Info", "foo", "cd'...
分类:
其他好文 时间:
2014-05-18 05:58:51
阅读次数:
284