最近点问题:二维平面中有n(n很大)个点,求出距离最近的两个点 思路:因为n的值很大,所以暴力和dp都行不通了吧!分治法就挺好的。 将区间一半一半的分开,直到分成只有一个点或两个点的时候! 对于只有两个点的区间,最小值就是这两个点的距离,只有一个点的区间, 最小值就是无穷大。注意还要考虑合并的时候....
分类:
其他好文 时间:
2015-03-18 20:29:40
阅读次数:
158
http://www.uisdc.com/10-necessary-mobile-ui-design-resources#交互设计中如何增加趣味性、提升愉悦http://www.uisdc.com/interaction-design-to-enhance-interest实用的图标下载网站http...
分类:
移动开发 时间:
2015-03-18 11:50:36
阅读次数:
165
Source Image、Color、Material...
分类:
编程语言 时间:
2015-03-18 10:44:01
阅读次数:
340
首先贴一个参考过的文章,写的不错: 在低版本android系统上实现Material design应用
下面是工作中总结出来的,列出了在
大元素
其他还有什么明显的大元素【待补充】下拉刷新【可以实现,类似Gmail下拉刷新的样式】
SwipeRefreshLayoutDemo 【google官方出的下来刷新,这里是一个例子】android-Ultra-Pull-To...
分类:
其他好文 时间:
2015-03-18 09:02:17
阅读次数:
198
Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complet...
分类:
其他好文 时间:
2015-03-17 17:47:37
阅读次数:
140
.aspx文件、.aspx.cs文件和.aspx.designer.cs的一些说明 .aspx文件:(页面)书写页面代码。存储的是页面design代码。只是放各个控件的代码,处理代码一般放在.cs文件中。 .aspx.cs文件:(代码隐藏页)书写类代码。存储的是程序代码。一般存放与数据库连接和数.....
分类:
Web程序 时间:
2015-03-17 08:59:15
阅读次数:
102
最近点对的裸题
利用分治去搞搞即可
代码:
#include
#include
#include
#include
using namespace std;
const int N = 100005;
struct Point {
double x, y;
void read() {
scanf("%lf%lf", &x, &y);
}
}...
分类:
其他好文 时间:
2015-03-16 21:19:59
阅读次数:
131
碰到这个异常的原因很偶然:现象:Solution在ReBuild过程中断电了,来电恢复了,重析编译整个Solution不报错,但在浏览页面时始终无法正常浏览,而在design的视图中,每个aspx的首行代码都报错。解决过程:搜索找到很多国内的方案,有的建议重新引用AjaxControlToolkit...
分类:
其他好文 时间:
2015-03-16 09:46:57
阅读次数:
111
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:
其他好文 时间:
2015-03-16 00:54:36
阅读次数:
160
Best Time to Buy and Sell Stock IVSay you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the ...
分类:
其他好文 时间:
2015-03-15 12:05:30
阅读次数:
115