摘要: For an undirected graph with tree characteristics, we can choose any node as the root. The result graph is then a rooted tree. Among all possible root 阅读全文
posted @ 2019-05-20 11:42 小白兔云 阅读(223) 评论(0) 推荐(0)
摘要: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple 阅读全文
posted @ 2019-05-20 10:32 小白兔云 阅读(190) 评论(0) 推荐(0)