会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Tony's Log
Algorithms, Distributed System, Machine Learning
博客园
::
首页
::
新随笔
::
联系
::
订阅
::
管理
::
公告
2014年8月19日
LeetCode "Permutation Sequence"
摘要: 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)
LeetCode "Linked List Cycle II"
摘要: 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)
LeetCode "Best Time to Buy and Sell Stock III"
摘要: 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)