会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Tony's Log
Algorithms, Distributed System, Machine Learning
博客园
::
首页
::
新随笔
::
联系
::
订阅
::
管理
::
公告
2014年7月31日
LeetCode "Reverse Linked List II"
摘要: Just corner case..class Solution {public: ListNode *reverseBetween(ListNode *head, int m, int n) { if(m == n) return head; ListNode *...
阅读全文
posted @ 2014-07-31 08:06 Tonix
阅读(126)
评论(0)
推荐(0)
LeetCode "Unique Binary Search Trees II"
摘要: I fell in a deadloop, and didn't see the actual recursion pattern.Reference:http://fisherlei.blogspot.com/2013/03/leetcode-unique-binary-search-trees-...
阅读全文
posted @ 2014-07-31 07:19 Tonix
阅读(99)
评论(0)
推荐(0)
LeetCode "Combination Sum II"
摘要: The only difference with version I is: one number can only be used once:class Solution {public: vector > ret; struct Rec { Rec() : sum...
阅读全文
posted @ 2014-07-31 03:40 Tonix
阅读(110)
评论(0)
推荐(0)