摘要: 转自:http://bbs.csdn.net/topics/390797415提问如下: 1 void QuickSort(int a[],int left,int right) 2 { 3 if(left > right) return ; 4 int i = left, j... 阅读全文
posted @ 2014-09-17 22:20 kira2will 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 冒泡排序算法的时间复杂度是什么?时间复杂度是O(n^2)。 1 #include "stdafx.h" 2 #include 3 using namespace std; 4 void Swap(int &a, int &b) 5 { 6 int temp = a; 7 a = b... 阅读全文
posted @ 2014-09-17 21:59 kira2will 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 转:http://blog.csdn.net/huahuahailang/article/details/128594812013年9月23日--9月30日华为:一面,二面,跪(岗位:研究工程师)深圳有方面试:一面,跪。创新工场:笔试,一面,跪杭州远方:笔试,跪锐捷:笔试,一面,offer,在福州湖... 阅读全文
posted @ 2014-09-17 21:53 kira2will 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.sina.com.cn/s/blog_4dff8712010136jh.html快速排序(quicksort)是目前应用最广泛的排序算法,它的平均复杂度为O(NlogN),因其内循环较小,所以速度很快,而且不需要太多额外的空间(主要是递归调用所需的栈空间,对于随机文件不... 阅读全文
posted @ 2014-09-17 10:16 kira2will 阅读(1139) 评论(0) 推荐(0) 编辑