摘要:
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... 阅读全文
摘要:
For a undirected graph with tree characteristics, we can choose any node as the root. The result graph is then a rooted tree. Among all possible roote... 阅读全文
摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=1257题目大意:有一种导弹拦截系统,每次只能发射比前一发导弹低的炮弹,给定一些导弹的袭击顺序,求至少需要多少导弹拦截系统来完全阻止思路:好久没做题。做题水的~直接模拟即可~#includeconst int MAX... 阅读全文