题目: Evaluate the value of an arithmetic expression
inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an
integer or another e.....
分类:
其他好文 时间:
2014-05-16 05:56:07
阅读次数:
221
题目: Given a linked list, determine if it has a
cycle in it. Follow up: Can you solve it without using extra space?解题思路:
使用快慢指针,快指针每次走两步,慢指针每次走一步...
分类:
其他好文 时间:
2014-05-16 05:19:21
阅读次数:
271
题目: Given a linked list, return the node where the
cycle begins. If there is no cycle, returnnull. Follow up: Can you solve it
without using extr...
分类:
其他好文 时间:
2014-05-16 04:50:13
阅读次数:
329
@RequestMapping的可选参数 value:表示需要匹配的url的格式。
method:表示所需处理请求的http 协议(如get,post,put,delete等),可选值为RequestMethod这个enum的值。
params:格式为”paramname=paramvalue” 或...
分类:
移动开发 时间:
2014-05-15 15:43:39
阅读次数:
405
本文介绍下,在javascript中实现表单序列化的方法,通过实例加深理解,有需要的朋友参考下吧。在JavaScript中,可以利用表单字段的type属性,连同name和value属性一起实现对表单的序列。首先,我们来了解下在表单提交期间,浏览器是怎样将数据发送给服务器的。对表单字段的名称和值进行U...
分类:
编程语言 时间:
2014-05-15 15:26:40
阅读次数:
318
CoinsTime Limit:3000MSMemory Limit:30000KTotal
Submissions:27580Accepted:9335DescriptionPeople in Silverland use coins.They
have coins of value A1,A2,...
分类:
其他好文 时间:
2014-05-14 11:52:46
阅读次数:
270
最近在看Jdk6中String的源码的时候发现String的有个这样的构造方法,源代码内容如下:public String(String original)
{ int size = original.count; char[] originalValue = original.value; cha...
分类:
其他好文 时间:
2014-05-14 11:34:24
阅读次数:
274
在系列(2)中我们展示了一个简单的get请求,并返回了一个简单的helloworld页面。本篇我们来学习如何来配置一个action的url映射规则。在系列(2)中我们在HelloWorldController上配置了一个@RequestMapping(value
= "/helloworld")这表...
分类:
编程语言 时间:
2014-05-14 11:09:46
阅读次数:
424
MotivationWe can not talk about Object Oriented
Programming without considering the state of the objects. After all object
oriented programming is abo...
分类:
其他好文 时间:
2014-05-14 10:51:18
阅读次数:
354
memcached 和 redis
的set命令都有expire参数,可以设置key的过期时间。但是redis是一个可以对数据持久化的key-value
database,它的key过期策略还是和memcached有所不同的。梳理,整理如下:redis通过expire命令来设置key的过期时间。语法...
分类:
其他好文 时间:
2014-05-14 07:09:41
阅读次数:
242