/** * @return the ${bare_field_name} *//** *
@param ${param} the ${bare_field_name} to set *//** * ${tags} *//** *
项目名称:${project_name} * 文件名称:${file_...
分类:
系统相关 时间:
2014-05-22 04:52:37
阅读次数:
302
/**根据完美二叉树或者非完美二叉树都可以,利用左右子树的根节点的next节点信息来连接next*/public void
connect(TreeLinkNode root){ if(root==null) return; //利用父节点的next...
分类:
其他好文 时间:
2014-05-22 03:03:39
阅读次数:
183
一、开始调式下面的程序,发现Button在js中设置disabled后无法执行后台代码(btnsave_Click)问题二、有的朋友会认为在js代码后面加上
return true就可以了,但这样也是不可行的。 OnClientClick是执行客户端代码,客户端被禁用了,OnClick是在Subm....
分类:
其他好文 时间:
2014-05-21 23:14:54
阅读次数:
4645
/** * 获取上一年第一天的时间 返回yyyy-MM-dd * * @param enDate *
@return */public Date getPreviousYearFirst(Date enDate) {Date date =
enDate;SimpleDateFormat dateF....
分类:
其他好文 时间:
2014-05-21 22:15:15
阅读次数:
370
package com.bupt.acm;import
java.util.Scanner;public class HeapSort { private int getLeft(int i){ return
2*(i+1)-1; } private int ...
分类:
其他好文 时间:
2014-05-21 22:01:39
阅读次数:
246
/**
* 多重背包:
* 有N种物品和一个容量为V的背包。第i种物品最多有Mi件可用,
* 每件耗费的空间是Ci,价值是Wi。
* 求解将哪些物品装入背包可使这些物品的耗费的空间总和不超过背包容量,且价值总和最大。
*/
#include
#include
int max(int a, int b){
if (a > b)return...
分类:
其他好文 时间:
2014-05-21 10:00:56
阅读次数:
206
Reverse a linked list from position m to n. Do it in-place and in one-pass.
For example:
Given 1->2->3->4->5->NULL, m = 2 and n =
4,
return 1->4->3->2->5->NULL.
Note:
Given m, n satisfy the fol...
分类:
其他好文 时间:
2014-05-21 07:18:02
阅读次数:
301
SOl:将原题改为枚举N的每一对因子,计算其是否互素即可。
#include
#include
#include
using namespace std;
inline int gcd(int a,int b)
{
return b==0?a:gcd(b,a%b);
}
int main()
{
int n,T,i,j;
scanf("%d",&T);
while(T...
分类:
其他好文 时间:
2014-05-21 07:07:00
阅读次数:
273
【题目】
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
For example,
Given [0,1,0,2,1,0,1,3,2,1,2,1], return 6.
The above elevation map is represente...
分类:
移动开发 时间:
2014-05-21 06:44:38
阅读次数:
359
package lbi.flow.util;import
net.sf.json.regexp.RegexpMatcher;public class RegexpUtils { /** *
匹配7c:d1:c3:73:d6:72形式mac * * @return ...
分类:
其他好文 时间:
2014-05-21 03:13:44
阅读次数:
288