Given an unsorted integer array, find the first
missing positive integer.For
example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm should ru...
分类:
其他好文 时间:
2014-06-04 20:13:41
阅读次数:
350
object fontname = "Wingdings 2"; object uic = true;
doc.Bookmarks.get_Item(ref lblmark).Range.InsertSymbol(-4014, ref fontname, ref
uic, ref missing)....
分类:
其他好文 时间:
2014-06-04 18:53:16
阅读次数:
866
Given a linked list and a valuex, partition it
such that all nodes less thanxcome before nodes greater than or equal tox.You
should preserve the origi...
分类:
其他好文 时间:
2014-06-03 14:12:24
阅读次数:
306
下载jar,导入到maven中
下载:http://download.csdn.net/detail/spring123tt/6991897 cmd中输入: mvn
install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dve...
分类:
数据库 时间:
2014-06-03 09:06:00
阅读次数:
370
find k missing numbers from 1 to n. (k>=1)
分类:
其他好文 时间:
2014-05-30 21:41:26
阅读次数:
593
Given a linked list and a value x, partition it
such that all nodes less than x come before nodes greater than or equal to x.You
should preserve the o...
分类:
其他好文 时间:
2014-05-26 09:35:28
阅读次数:
266
JUnit 4 使用 Java 5 中的注解(annotation),以下是JUnit 4
常用的几个 annotation
介绍@Before:初始化方法@After:释放资源@Test:测试方法,在这里可以测试期望异常和超时时间@Ignore:忽略的测试方法@BeforeClass:针对所有测试...
分类:
编程语言 时间:
2014-05-26 09:32:04
阅读次数:
302
##报错来源分析 由于hibernate-entitymanager 需要jboss logging
。由于或多或少的原因导致 maven无法下载相关的jar文件。##解决办法: 访问 http://search.maven.org
搜索jboss-logging 点击all, 找到相...
分类:
其他好文 时间:
2014-05-25 23:23:26
阅读次数:
401
前一阵子下了最新的JavaEE版本号的eclipse,导入mavenproject之后,pom文件一直报Missing artifact
com.sun:tools:jar:1.5.0。非常纳闷,tools.jar是jdk自带的jar包。查了一下pom依赖图,原来是struts-core依赖了这个....
分类:
其他好文 时间:
2014-05-25 03:29:59
阅读次数:
228
触发器是特定事件出现的时候,自动执行的代码块。类似于存储过程,但是用户不能直接调用他们。功能:1、允许/限制对表的修改2、自动生成派生列,比如自增字段3、强制数据一致性4、提供审计和日志记录5、防止无效的事务处理6、启用复杂的业务逻辑开始createtriggerbiufer_employ..
分类:
数据库 时间:
2014-05-24 15:46:01
阅读次数:
376