10.1 Imagine you are building some sort of service that will be called by up to 1000 client applications to get simple end-of-day stock price informat...
分类:
其他好文 时间:
2015-10-02 07:53:54
阅读次数:
217
题目:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two...
分类:
编程语言 时间:
2015-10-01 23:04:32
阅读次数:
383
现在什么事都动不动大数据了。连个int也level up成了BigInteger。在一些场景似乎还不得不使用它。 于是有人贱贱地问:“这个天到底有多大呢?” 不,应该是“这个BigInteger到底有多大呢?” 让我们来看看BigInte...
分类:
移动开发 时间:
2015-10-01 21:52:08
阅读次数:
191
Yahoo!的Exceptional Performance团队为改善Web性能带来最佳实践。他们为此进行了一系列的实验、开发了各种工具、写了大量的文章和博客并在各种会议上参与探讨。最佳实践的核心就是旨在提高网站性能。原版猛戳:Best Practices for Speeding Up Your ...
分类:
Web程序 时间:
2015-10-01 15:16:35
阅读次数:
250
QuestionGiven a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the give...
分类:
其他好文 时间:
2015-09-30 23:22:37
阅读次数:
435
wait()、notify()和notifyAll()是Object类中的方法:12345678910111213141516171819202122232425/*** Wakes up a single thread that is waiting on this object's* monit...
分类:
编程语言 时间:
2015-09-30 18:10:56
阅读次数:
266
1. 先到http://www.amazingcounters.com/sign-up.php 这个地址去申请一个帐户,申请时填写好自己的资料,比如 你的统计风格样式、要统计的地址、要统计的类型,是浏览量(PV) 还是 访客数(UV),或者你也可以2个都统计;这些统计数据都是可以任意修改的哟,不过我...
分类:
其他好文 时间:
2015-09-30 16:09:50
阅读次数:
229
题目大意:和soj 1150题目大意差不多,不过数据规模变大了,n可能大于10。解题思路:在1150的基础上作修改,修改状态重复判断的方式。以前是:扫描整个队列,查重;现在是:引入set集合,每个元素只记录up和down的值,进行查重。代码如下: 1 #include 2 #include ...
分类:
其他好文 时间:
2015-09-30 16:09:44
阅读次数:
208
DOWN操作:linux内核。信号DOWN例如,下面的操作:void down(struct semaphore *sem); //不间断int down_interruptible(struct semaphore *sem);//可中断int down_killable(struct semap...
分类:
其他好文 时间:
2015-09-30 14:37:17
阅读次数:
311
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?原地图像顺时针旋转90度。由于要求空间...
分类:
编程语言 时间:
2015-09-30 14:22:18
阅读次数:
214