最近觉得写的一点代码(JAVA),还觉得颇为自得,贡献出来供大家参考。首先,先上代码:@Controllerpublic class Controller1{ @WriteLog(value = "${p0.username}从${ctx.ip}登录, 登录${iif(ret.suc...
分类:
编程语言 时间:
2014-07-07 17:10:44
阅读次数:
236
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorte...
分类:
其他好文 时间:
2014-07-07 16:53:17
阅读次数:
196
Problem Description:There areNchildren standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to...
分类:
其他好文 时间:
2014-07-07 16:22:28
阅读次数:
129
Problem Description:Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integ...
分类:
其他好文 时间:
2014-06-30 14:32:54
阅读次数:
151
先看一段代码
#include
#include
#include
#include
#include
static int count = 0;
void set_timer()
{
struct itimerval itv;
itv.it_value.tv_sec = 3; //timer start after 3 seconds later
itv.it...
分类:
系统相关 时间:
2014-06-30 10:31:41
阅读次数:
365
在页面上单选按钮的代码:
checked value="${key}" name="record.is_com"/>${value}
获取单选按钮选中的值,并给指定的单选按钮赋值:
if($('input[name="record.is_com"]:che...
分类:
Web程序 时间:
2014-06-30 06:00:54
阅读次数:
205
Candy
Total Accepted: 12392 Total
Submissions: 68386My Submissions
There are N children standing in a line. Each child is assigned a rating value.
You are giving candies to these childre...
分类:
其他好文 时间:
2014-06-29 23:15:17
阅读次数:
228
【题目】
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
get(key) - Get the value (will always be positive) of the key if the key exists in the cache, otherwise return -1.
se...
分类:
其他好文 时间:
2014-06-29 22:45:26
阅读次数:
358
改变样式
返回值:Stringcss(name|pro|[,val|fn])
访问匹配元素的样式属性。
参数
nameStringV1.0
要访问的属性名称
propertiesMapV1.0
要设置为样式属性的名/值对
name,valueString, NumberV1.4
属性名,属性值
name,function(index, value)String,Fu...
分类:
Web程序 时间:
2014-06-29 22:31:07
阅读次数:
287
看下面这段代码:#-*-coding:utf-8-*-importcopyclassPresent(object):def__init__(self,str_cmd):self._str_cmd=str_cmdprint"进入Present时的地址:",id(self._str_cmd)defset_value(self):temp="test_cmd"self._str_cmd=copy.deepcopy(temp)defget_value(self):returnself._s..
分类:
编程语言 时间:
2014-06-29 21:38:46
阅读次数:
318