Tony's Log

Algorithms, Distributed System, Machine Learning

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

2015年9月15日

摘要: A simple variation to 0-1 Knapsack.class Solution {public: /** * @param m: An integer m denotes the size of a backpack * @param A: Given n it... 阅读全文
posted @ 2015-09-15 10:47 Tonix 阅读(131) 评论(0) 推荐(0)

摘要: Partial Sort.class Solution {public: /** * @param nums: A list of integers. * @return: An integer denotes the middle number of the array. ... 阅读全文
posted @ 2015-09-15 05:24 Tonix 阅读(211) 评论(0) 推荐(0)

摘要: Capable to k-vector input too:class ZigzagIterator { int x; int i; int max_x; vector*> l; void moveon() { int oldi= i... 阅读全文
posted @ 2015-09-15 03:55 Tonix 阅读(155) 评论(0) 推荐(0)