Tony's Log

Algorithms, Distributed System, Machine Learning

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

2015年8月24日

摘要: 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 阅读(152) 评论(0) 推荐(0)

摘要: 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 阅读(220) 评论(0) 推荐(0)

摘要: 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)