Rectangle AreaFind the total area covered by tworectilinearrectangles in a2Dplane.Each rectangle is defined by its bottom left corner and top right co...
分类:
其他好文 时间:
2015-07-11 10:26:40
阅读次数:
102
Problem DescriptionIn the new year party, everybody will get a "special present".Now it's your turn to get your special present, a lot of presents now...
分类:
其他好文 时间:
2015-07-10 20:42:18
阅读次数:
122
1.ListView分页的实现,重点在于实现OnScrollListener接口,判断滑动到最后一项时,是否还有数据可以加载,我们可以利用listView.addFootView(View v)方法进行提示自定义一个ListView(这里本来想进行一些自定已修改的。。。实际代码并没有做)Corner...
分类:
移动开发 时间:
2015-07-10 00:16:23
阅读次数:
490
Find the total area covered by two rectilinear rectangles in a 2D plane.
Each rectangle is defined by its bottom left corner and top right corner as shown in the figure.
Assume that the tota...
分类:
其他好文 时间:
2015-07-08 09:33:41
阅读次数:
138
有的时候,我们为了从安全角度考虑,防止黑客恶意攻击,我们会隐藏掉server信息,比如,一般我们会发现如下信息。
我用的是centos (fedora, RHEL也一样)$ sudo vi /etc/httpd/conf/httpd.conf 其他的系统(ubuntu, Debian)$ sudo vi /etc/apache2/apache2.conf 我们可以在这个文件中添加两行信息Serve...
分类:
Web程序 时间:
2015-07-01 18:23:34
阅读次数:
188
原文 I was having dinner at a restaurant when Tony Steele came in. Tony worked in a lawyer‘s office years ago, but he is now working at a bank. He gets a good salary, but he always borrows money fr...
分类:
其他好文 时间:
2015-07-01 14:21:57
阅读次数:
130
223 Rectangle Area链接:https://leetcode.com/problems/rectangle-area/
问题描述:
Find the total area covered by two rectilinear rectangles in a 2D plane.Each rectangle is defined by its bottom left corner...
分类:
其他好文 时间:
2015-06-30 16:24:49
阅读次数:
88
// 将正数变成对应的负数,将负数变成对应的正数
#include
int turn(int a)
{
if (a <= 0)
{
a = ~a + 1;
}
else
{
a = (a ^ 0xffffffff) + 1;
}
return a;
}
int main()
{
printf("%d\n", turn(5));
printf("%d\n", tu...
分类:
编程语言 时间:
2015-06-30 16:20:29
阅读次数:
152
Given an absolute path for a file (Unix-style), simplify it.For example,path="/home/", =>"/home"path="/a/./b/../../c/", =>"/c"click to show corner cas...
分类:
其他好文 时间:
2015-06-28 12:23:51
阅读次数:
109
The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a 2D grid. Our valiant knight (K)
was initially p...
分类:
其他好文 时间:
2015-06-28 11:19:38
阅读次数:
110