Tony's Log

Algorithms, Distributed System, Machine Learning

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

12 2014 档案

摘要:Really interesting O(n) problem. Just like playing.. so actually working on algorithm problems is like playing games!class Solution {public: int ma... 阅读全文
posted @ 2014-12-23 05:37 Tonix 阅读(148) 评论(0) 推荐(0)

摘要:One TopCoder article introduces a very interesting alternative solution to Longest Common Sequences problem.It is based on this statement (http://comm... 阅读全文
posted @ 2014-12-20 09:40 Tonix 阅读(285) 评论(0) 推荐(0)

摘要:Binary Tree *-order traversal by recursion is trivial. But their iteration version deserves a look:Pre-Orderclass Solution { vector ret;public: ... 阅读全文
posted @ 2014-12-16 06:49 Tonix 阅读(135) 评论(0) 推荐(0)

摘要:没什么难的,提示已经说得很明白了。HihoCoder目前还不支持C++11,囧..#include #include #include #include #include #include using namespace std;//struct Node{ Node(char rc) : c... 阅读全文
posted @ 2014-12-04 04:25 Tonix 阅读(267) 评论(0) 推荐(0)