Statements: This blog was written by me, but most of content is quoted from book【Data Structure with Java Hubbard】
【Description】
Apolynomialis a mathematical function of the fo...
分类:
其他好文 时间:
2014-08-11 21:22:42
阅读次数:
308
对于中文题,直接讲思路吧!
思路:一看题目,兴奋啊,貌似是求最大流相关的问题,但是仔细审题一看,发现是要你去求最大速度与最小速度之差最小的路!最大最小之差最小,那么我们就可以联想到贪心的问题了,这题还有个地方在于能到达目的地,那么就是说明要连通给定的起点与终点了,所以我们可以考虑并查集的思想了!
所以本题的大致的思路可以确定为,我们可以对所有边的权值就行排序,然后从0开始对所有的点进行枚举,连...
分类:
其他好文 时间:
2014-08-11 12:04:02
阅读次数:
267
Statements: This blog was written by me, but most of content is quoted from book【Data Structure with Java Hubbard】
【Description】
Alistis a collection of elements that are accessible sequential...
分类:
其他好文 时间:
2014-08-11 00:28:31
阅读次数:
221
【Description】
A queue is a collection that implements the first-in-first-out protocal. This means that the only accessiable object in the collection in the first one that was inserted. The most commo...
分类:
其他好文 时间:
2014-08-10 21:43:10
阅读次数:
236
Statements: This blog was written by me, but most of content is quoted from book【Data Structure with Java Hubbard】
【Description】
This simulationillustrates objectoriented programming...
分类:
其他好文 时间:
2014-08-10 21:42:20
阅读次数:
450
Team QueueQueues and Priority Queues are data structures which are known to most computer scientists. The Team Queue, however, is not so well known, ....
分类:
其他好文 时间:
2014-08-10 18:13:30
阅读次数:
328
find the most comfortable road
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 3686 Accepted Submission(s): 1565
Problem Descript...
分类:
其他好文 时间:
2014-08-09 18:51:08
阅读次数:
229
在 SublimeText 中直接运行 Python 脚本,出现以下报错提示:Running python -u C:\Documents and Settings\Administrator\桌面\furl.pyTraceback (most recent call last):File ".\s...
分类:
编程语言 时间:
2014-08-09 18:37:48
阅读次数:
765
Facebook Chat, offered a nice set of software engineering challenges:Real-time presence notification:The most resource-intensive operation performed i...
分类:
其他好文 时间:
2014-08-08 17:26:26
阅读次数:
311
转自09年的blog,因为facebook在国内无法访问,故此摘录。The Photos application is one of Facebook’s most popular features. Up to date, users have uploaded over 15 billion p...
分类:
其他好文 时间:
2014-08-08 12:26:55
阅读次数:
374