会员
众包
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
乘风有时
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
2017年5月17日
[LeetCode]Wiggle Sort
摘要: 题目:Wiggle Sort II Given an unsorted array nums, reorder it such that nums[0] < nums[1] > nums[2] < nums[3].... Example:(1) Given nums = [1, 5, 1, 1, 6
阅读全文
posted @ 2017-05-17 21:44 乘风有时
阅读(217)
评论(0)
推荐(0)
编辑
C++基础之string类
摘要: string也是属于顺序容器,但是string类很重要且经常使用,因此在这里单独记录。 string的操作总结 string(const char *s,int n); //用c字符串s初始化,s应至少含有n个字符string(s2,pos2); //s2从下标pos2开始的字符的拷贝,pos2>s
阅读全文
posted @ 2017-05-17 09:41 乘风有时
阅读(281)
评论(0)
推荐(0)
编辑