Tony's Log

Algorithms, Distributed System, Machine Learning

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

2015年9月20日

摘要: A variation to Sort Colors I - we take care of 2 sides, recursively\iteratively.class Solution{public: /** * @param colors: A list of integer ... 阅读全文
posted @ 2015-09-20 15:48 Tonix 阅读(152) 评论(0) 推荐(0)

摘要: class Solution {public: void moveZeroes(vector& nums) { size_t n = nums.size(); if(n < 2) return; int i = 0, j = 0; ... 阅读全文
posted @ 2015-09-20 04:31 Tonix 阅读(103) 评论(0) 推荐(0)