会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
yanqi
博客园
|
首页
|
新随笔
|
新文章
|
联系
|
订阅
|
管理
2015年11月16日
LeetCode() Sort Colors
摘要: 一个数组里有0,1,2三种数,排列非常牛逼的思路!!class Solution {public: void sortColors(vector& nums) { int i=-1,j=-1,k=-1; for(int p=0;p& nums) { ...
阅读全文
posted @ 2015-11-16 22:10 yanqi
阅读(125)
评论(0)
推荐(0)
编辑
LeetCode() Spiral Matrix
摘要: 顺时针打印二维数组,以前在牛客网上做过,不过还是忘了 int n,m; vector > v; bool judge(int i,int j) { return i>=0 && i=0 && j printMatrix(vector > matrix) { ...
阅读全文
posted @ 2015-11-16 15:39 yanqi
阅读(168)
评论(0)
推荐(0)
编辑
公告