题目链接:
点击打开链接
题目:
Whuacmers use coins.They have coins of value A1,A2,A3...An Silverland dollar. One day Hibix opened purse and found there were some coins. He decided to buy a very nice watch...
分类:
其他好文 时间:
2014-05-18 15:56:34
阅读次数:
264
【题目】
Given an array and a value, remove all instances of that value in place and return the new length.
The order of elements can be changed. It doesn't matter what you leave beyond the new length.
【题意】
删除数组中指定的值。不关心在新数组的后面即数组尾部留下了什么值。
【思路】
思路同Remo...
分类:
其他好文 时间:
2014-05-18 14:53:56
阅读次数:
208
题意:
Evaluate the value of an arithmetic expression in
Reverse Polish Notation.
Valid operators are +, -, *,
/. Each operand may be an integer or another expression.
So...
分类:
其他好文 时间:
2014-05-18 08:09:15
阅读次数:
190
public List queryBySqlMap(String asql) {
final String sql = asql;
List lst = getHibernateTemplate().executeFind( new HibernateCallback() {
public Object doInHi...
分类:
数据库 时间:
2014-05-18 08:07:09
阅读次数:
378
JSON格式化工具:
JSON定义
JSON(JavaScript Object Notation)一种轻量级的数据交换格式,具有良好的可读和便于快速编写的特性。可在不同平台之间进行数据交换。JSON采用兼容性很高的、完全独立于语言文本格式,同时也具备类似于C语言的习惯(包括C, C++, C#,
Java, JavaScript, Perl, Python等)体系的行为。这些...
分类:
Web程序 时间:
2014-05-18 07:27:04
阅读次数:
361
CORBA概述
CORBA(Common Object Request Broker Architecture,公共对象请求代理体系结构)是由OMG组织制订的一种标准的面向对象应用程 序体系规范。或者说 CORBA体系结构是OMG为解决分布式处理环境(DCE)中,硬件和软件系统的互连而提出的一种解决方案。
OMG:Object Management Group,对象管理组织。是一个国际化的、开...
分类:
其他好文 时间:
2014-05-18 07:07:38
阅读次数:
383
工厂方法和原型模式一样,也是属于创建对象的设计模式。
官方定义:
“Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.”
...
分类:
其他好文 时间:
2014-05-18 06:37:51
阅读次数:
257
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-18 02:34:57
阅读次数:
352
Redis是一个用的比较广泛的Key/Value的内存数据库,新浪微博、Github、StackOverflow等大型应用中都用其作为缓存,Redis的官网为http://redis.io/。最近项目中需要使用Redis,这里简单记录一下Redis的安装,以及如何在.NET中使用Redis。Redi...
分类:
Web程序 时间:
2014-05-17 23:28:11
阅读次数:
473
在Struts2中,Action可以不实现任何特殊的接口或者继承特殊的类,仅仅是一个POJO(Plain Old Java
Object,简单的Java对象)就可以;也可以实现Xwork2中的Action接口;但是由于Xwork的Action接口非常简单,为程序员提供的帮助有限,因此,在实际开发.....
分类:
其他好文 时间:
2014-05-17 23:26:07
阅读次数:
479