会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Tony's Log
Algorithms, Distributed System, Machine Learning
博客园
::
首页
::
新随笔
::
联系
::
订阅
::
管理
::
公告
2015年9月20日
LintCode "Sort Colors II"
摘要: 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)
LeetCode "Move Zeroes"
摘要: 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)