Tony's Log

Algorithms, Distributed System, Machine Learning

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

2014年8月19日

摘要: 1A! This is actually a basic question in Combinatorics: if at digit[k] = n, it contributes (k-1)! * n to the targeted index.class Solution {public: ... 阅读全文
posted @ 2014-08-19 13:26 Tonix 阅读(152) 评论(0) 推荐(0)

摘要: 找到自己切题的主要障碍了:试图刚读完题就foresee到最后的solution,其实就是妄图利用比较省事的感性直接超越逻辑推导的理性:其实就是懒。超验感性实际上是建立在大量理性的思考与实践上的。这话不是我说的,出自一位顶尖数学家之口。更别说偶了。 阅读全文
posted @ 2014-08-19 12:40 Tonix 阅读(150) 评论(0) 推荐(0)

摘要: Nothing but admire: http://fisherlei.blogspot.com/2013/11/leetcode-linked-list-cycle-ii-solution.htmlclass Solution {public: ListNode *detectCycle(... 阅读全文
posted @ 2014-08-19 12:36 Tonix 阅读(145) 评论(0) 推荐(0)

摘要: Refer: http://blog.unieagle.net/2012/12/05/leetcode%E9%A2%98%E7%9B%AE%EF%BC%9Abest-time-to-buy-and-sell-stock-iii%EF%BC%8C%E4%B8%80%E7%BB%B4%E5%8A%A8%... 阅读全文
posted @ 2014-08-19 11:42 Tonix 阅读(179) 评论(0) 推荐(0)