Tony's Log

Algorithms, Distributed System, Machine Learning

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

2015年7月15日

摘要: Brutal-force solution is not hard to think about. But linear space input usually indicates O(n) DP solution.State design: dp[i]: total sum until index... 阅读全文
posted @ 2015-07-15 13:14 Tonix 阅读(391) 评论(0) 推荐(0)

摘要: An interview problem I encountered years ago.. 1ACclass Solution {public: void deleteNode(ListNode* node) { if(!node) return; Lis... 阅读全文
posted @ 2015-07-15 09:10 Tonix 阅读(141) 评论(0) 推荐(0)