Givennnon-negative integersa1,a2, ...,an, where
each represents a point at coordinate (i,ai).nvertical lines are drawn such that
the two endpoints of ...
分类:
其他好文 时间:
2014-06-04 21:09:33
阅读次数:
307
Jaw crusher is the most popular primary
crushing equipment in mining industry. The jaw crusher is designed to crush all
sorts of rock from the hardest...
分类:
其他好文 时间:
2014-05-30 06:45:00
阅读次数:
163
Fast Matrix OperationsThere is a matrix
containing at most 106elements divided into r rows and c columns. Each element
has a location (x,y) where 10)2...
分类:
其他好文 时间:
2014-05-30 03:31:23
阅读次数:
516
题目:在二维坐标系下,有很多个挡板,有两个挡板之间能够积蓄的水的最大面积。如下图所示:思路:我只想到暴力解法,用O(n2)的时间复杂度算出任意两个挡板形成的面积,这必须的过不了。优化解法:O(n).用两个指针
i 和 j 指向整个height[]数组的头尾。if i 指向的高度 决定,因此不会比现在...
分类:
其他好文 时间:
2014-05-29 17:40:09
阅读次数:
312
Problem: Given a two-dimensional graph with
points on it, find a line which passes the most number of points.此题是Cracking the
code 5th edition 第七章第六题,思...
分类:
其他好文 时间:
2014-05-29 08:10:38
阅读次数:
292
1.有效位在谈字节序前需要先了解有效位,有效位分为两种:最低有效位(LSB: Least
Significant Bit) 和最高有效位(MSB:Most Significant
Bit)。在二进制数中,LSB是最低加权位,与十进制数字中最右边的一位类似;MSB是最高加权位,与十进制数字中最左边的一...
分类:
Web程序 时间:
2014-05-28 15:06:30
阅读次数:
369
题目: Say you have an array for which the ith element
is the price of a given stock on day i. If you were only permitted to complete
at most one transac...
分类:
其他好文 时间:
2014-05-28 00:55:20
阅读次数:
288
ActiveMQ is the most popular and powerful open
source Message Bus.ActiveMQ是一个完全支持JMS1.1和J2EE 1.4规范的JMS
Provider实现,尽管JMS规范出台已经是很久的事情了,但是JMS在当今的J2EE应用中间...
分类:
其他好文 时间:
2014-05-26 02:12:12
阅读次数:
226
you should consider creating a custom View
component and drawing with a Canvas inView.onDraw(). The most convenient aspect
of doing so is that the And...
分类:
其他好文 时间:
2014-05-26 00:05:06
阅读次数:
327
按照官方文档的说明,安装scrapy 需要以下程序或者库:Python2.7lxml. Most
Linux distributions ships prepackaged versions of lxml. Otherwise refer
tohttp://lxml.de/installation...
分类:
其他好文 时间:
2014-05-25 03:34:05
阅读次数:
314