Tony's Log

Algorithms, Distributed System, Machine Learning

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

2015年6月9日

摘要: My first try was DFS by intuition, but it ended up with MLE. So, the expected solution is to use stack:class Solution { struct Node { Nod... 阅读全文
posted @ 2015-06-09 13:41 Tonix 阅读(470) 评论(0) 推荐(0)

摘要: More on data structure.#include #include #include #include #include #include #include #include using namespace std;typedef pair Point;struct DistComp{... 阅读全文
posted @ 2015-06-09 09:34 Tonix 阅读(255) 评论(0) 推荐(0)

摘要: Classic and challenging DP! And you need combine several tricks together with DP to make it 100% pass.My main reference is here:https://github.com/hav... 阅读全文
posted @ 2015-06-09 05:10 Tonix 阅读(1215) 评论(0) 推荐(0)