Tony's Log

Algorithms, Distributed System, Machine Learning

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

2014年8月1日

摘要: Greedy, Greedy, Greedy.. It is all about maximum interval update.One trick is, we start looping over each element from the one nearest to end to farth... 阅读全文
posted @ 2014-08-01 12:07 Tonix 阅读(125) 评论(0) 推荐(0)

摘要: A simulation problem. We simple walk through all reachable items until we cannot proceed.class Solution {public: bool canJump(int A[], int n) { ... 阅读全文
posted @ 2014-08-01 11:11 Tonix 阅读(114) 评论(0) 推荐(0)

摘要: Next time you see a numeric problem has a too straightforward solution, think about optimized one.Like this one: recursion\iteration is tooo slow. SoD... 阅读全文
posted @ 2014-08-01 05:09 Tonix 阅读(158) 评论(0) 推荐(0)