Description
On a m*m land stationed n troops, numbered from 1 to n. The i-th troop's position can be described by two numbers (xi,yi) (1
Then there are t minutes, in each minute one of the followi...
分类:
其他好文 时间:
2014-07-28 16:25:13
阅读次数:
356
Description
You are working for Macrohard company in data structures department. After failing your previous task about key insertion you were asked to write a new data structure that would be able...
分类:
其他好文 时间:
2014-07-28 16:14:11
阅读次数:
257
早上经理给我考了个项目,让我部署,遇到了这个问题
解决办法:由于 我的是JDK 6 TOMCAT 6 而他的是JDK 7 TOMCAT 7 ,我不想换JDK,
于是修改配置文件就OK了
找到项目目录下的.settings 文件夹里面的org.eclipse.wst.common.project.facet.core.xml
修改如下:...
分类:
编程语言 时间:
2014-07-28 16:00:33
阅读次数:
249
静态区间第K大,主席树写法。
主席树第一题,如果对整段区间建线段树可以求1~n范围内的第K大,要想求任意区间内的第K大需要建1~i 的n棵线段树。求某一段的时候区间相减就可以了。但是这样空间消耗太大所以要尽量利用以前的节点。注意到1~i的线段树和i~i+1的线段树只某一条链上的值不同,所以我们只要建出这一条链就可以了,剩下的节点和1~i+1的线段树是一样的,我们直接把节点指过去。
T[ ......
分类:
其他好文 时间:
2014-07-28 15:56:43
阅读次数:
270
DisclaimerThe way I’m doing this relies on a feature I wrote for Graphite that was only recently merged to trunk, so at time of writing that feature i...
分类:
移动开发 时间:
2014-07-28 15:36:43
阅读次数:
430
表格 —— 默认样式重置 表格标签: table 表格 thead 表格头 tbody 表格主体 tfoot 表格尾 tr 表格行 th 元素定义表头 td 元素定义表格单元 表格样式重置 table{border-collapse:collapse...
分类:
Web程序 时间:
2014-07-28 11:31:30
阅读次数:
219
A real-time operating system (RTOS) for use with minimal-memory controllers has a kernel for managing task execution, including context switching, a p...
分类:
其他好文 时间:
2014-07-28 11:25:50
阅读次数:
302
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space. Y...
分类:
其他好文 时间:
2014-07-28 00:28:19
阅读次数:
273
Description
Polycarpus loves hamburgers very much. He especially adores the hamburgers he makes with his own hands. Polycarpus thinks that there are only three decent ingredients to make hamburgers...
分类:
其他好文 时间:
2014-07-28 00:07:29
阅读次数:
363
在基类的table中加入upgrade操作:
public abstract class DbBaseTable {
private static final String TAG = "DbBaseTable";
/**
* @return the DB table name
*/
abstract String getName();
/**
* Creates th...
分类:
移动开发 时间:
2014-07-27 23:52:19
阅读次数:
387