会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Mikuroro
博客园
首页
新随笔
联系
订阅
管理
2015年6月18日
面试题8:旋转数组的最小数字
摘要: //把一个数组最开始的若干个元素搬到数组的末尾。eg:{3,4,5,1,2}是{1,2,3,4,5}的旋转数组#include "stdafx.h"#include using namespace std;int MinInOrder(int data[],int index1,int index2...
阅读全文
posted @ 2015-06-18 15:28 Mikuroro
阅读(200)
评论(0)
推荐(0)
编辑
冒泡排序
摘要: #include "stdafx.h"#include using namespace std;void BubbleSort(int data[],int length){ int i,j; bool exchange=false; for(int i=0;i<length-1;i++) { e...
阅读全文
posted @ 2015-06-18 14:28 Mikuroro
阅读(171)
评论(0)
推荐(0)
编辑
快速排序
摘要: #include "stdafx.h"#include using namespace std;int RandomInRange(int start,int end);void Swap(int *p,int *q);int patition(int data[],int length,int s...
阅读全文
posted @ 2015-06-18 14:07 Mikuroro
阅读(217)
评论(0)
推荐(0)
编辑
公告