DebugerGreat questionsThese questions will solve most bugs:what method shows the symptom ? what lines of code produces that symptom ?what is the state...
分类:
编程语言 时间:
2014-07-16 23:13:29
阅读次数:
367
题目链接 Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two ...
分类:
其他好文 时间:
2014-07-07 22:25:30
阅读次数:
359
Problem Description:Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most...
分类:
其他好文 时间:
2014-07-07 15:24:05
阅读次数:
206
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:
其他好文 时间:
2014-07-03 11:53:07
阅读次数:
182
?===================下面是最小生成树+并查集======================================【HDU】1198 Farm Irrigation并查集★(好题)1598 find the most comfortable road枚举+最小生成树★★18...
分类:
其他好文 时间:
2014-06-27 16:36:46
阅读次数:
284
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo...
分类:
其他好文 时间:
2014-06-27 12:20:47
阅读次数:
245
A bottom-up DP. To be honest, it is not easy to relate DP to this problem. Maybe, all "most"\"least" problems can be solved using DP..Reference:http:/...
分类:
Web程序 时间:
2014-06-25 18:39:32
阅读次数:
235
什么是异常?python用异常对象(exception object)来表示异常情况。遇到错误后,就会引发异常。如果异常未被处理或捕获,程序就会用所谓的回溯(traceback)终止执行。>>> 1 / 0Traceback (most recent call last): File "", li....
分类:
编程语言 时间:
2014-06-25 16:25:40
阅读次数:
604
Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie...
分类:
其他好文 时间:
2014-06-25 13:06:16
阅读次数:
198
题目
Given n non-negative integers a1, a2,
..., an, where each represents a point at coordinate (i, ai). n vertical
lines are drawn such that the two endpoints of line i is at (i, ai) and (...
分类:
其他好文 时间:
2014-06-24 16:00:49
阅读次数:
220