摘要: class Solution {public: UndirectedGraphNode *cloneGraph(UndirectedGraphNode *node) { UndirectedGraphNode *clone = dfs(node); dfs_clea... 阅读全文
posted @ 2014-07-22 20:29 卖程序的小歪 阅读(177) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: int maxProfit(vector &prices) { int len = prices.size(); if (len i2r(len, 0); vector i2l(len, 0); ... 阅读全文
posted @ 2014-07-22 16:09 卖程序的小歪 阅读(160) 评论(0) 推荐(0) 编辑
摘要: Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express... 阅读全文
posted @ 2014-07-22 10:56 卖程序的小歪 阅读(137) 评论(0) 推荐(0) 编辑