会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Tony's Log
Algorithms, Distributed System, Machine Learning
博客园
::
首页
::
新随笔
::
联系
::
订阅
::
管理
::
公告
2015年10月13日
LintCode "Count of Smaller Number before itself"
摘要: Warning: input could be > 10000...Solution by segment tree:struct Node{ Node(int s, int e) : start(s), end(e), cnt(0), left(nullptr), right(nullptr...
阅读全文
posted @ 2015-10-13 13:57 Tonix
阅读(156)
评论(0)
推荐(0)
LeetCode "Nim Game"
摘要: Same as LintCode 'Coins in a line'. Here is mind-flow: 4 is a definite lose, for (4 + 1), (4 + 2), (4 + 3), we can put the other player into slot 4 - ...
阅读全文
posted @ 2015-10-13 05:34 Tonix
阅读(184)
评论(0)
推荐(0)