Tony's Log

Algorithms, Distributed System, Machine Learning

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

2015年10月1日

摘要: Partition and swapping. A lot details to take care.class Solution {public: /** * @param A: An integer array. * @return: void */ void... 阅读全文
posted @ 2015-10-01 15:27 Tonix 阅读(166) 评论(0) 推荐(0)

摘要: Fenwick Tree is perfect for this problem, though space complexity is not quite efficient.class Solution { ////////////////// // Fenwick Tree // ... 阅读全文
posted @ 2015-10-01 11:14 Tonix 阅读(206) 评论(0) 推荐(0)

摘要: Typical Trie usage. But please note that it could be any order of input strings.#include #include #include #include #include #include #include using n... 阅读全文
posted @ 2015-10-01 01:07 Tonix 阅读(354) 评论(0) 推荐(0)