会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Tony's Log
Algorithms, Distributed System, Machine Learning
博客园
::
首页
::
新随笔
::
联系
::
订阅
::
管理
::
公告
2015年8月24日
LeetCode "3Sum Smaller"
摘要: A variation of 3Sum. And the trick is, (i& nums, int target) { size_t len = nums.size(); if(len = target) k--; ...
阅读全文
posted @ 2015-08-24 14:38 Tonix
阅读(153)
评论(0)
推荐(0)
LeetCode "Group Shifted Strings"
摘要: Use constructive strategy: we compose each of the 26 variations of one word.class Solution {public: vector> groupStrings(vector& strings) { ...
阅读全文
posted @ 2015-08-24 12:26 Tonix
阅读(221)
评论(0)
推荐(0)
LeetCode "Read N Characters Given Read4 II - Call multiple times"
摘要: I learnt a clean idea: all read is from the 4-char buffer.int read4(char *buf);class Solution { int offset; int validLen; char _buf[4]; ...
阅读全文
posted @ 2015-08-24 11:42 Tonix
阅读(159)
评论(0)
推荐(0)