码迷,mamicode.com
首页 >  
搜索关键字:sort    ( 12890个结果
CodeForces 451B Sort the Array
DescriptionBeing a programmer, you like arrays a lot. For your birthday, your friends have given you an arrayaconsisting ofndistinctintegers.Unfortuna...
分类:其他好文   时间:2014-07-27 22:27:19    阅读次数:219
算法学习-基数排序(radix sort)卡片排序(card sort) C++数组实现
基数排序又叫卡片排序,这是在比较早的时候用的比较多的排序方法。 在现代计算机出现之前,一直用于老式穿孔卡的排序。 说下基数排序的思想,前面我有写一个桶式排序,基数排序的思想是桶式排序的推广。 桶式排序:http://blog.csdn.net/alps1992/article/details/38132593...
分类:编程语言   时间:2014-07-27 11:51:53    阅读次数:257
数据结构之shell排序
#SIZE  10        //直接插入排序     void insert_sort(){           int i,j;           int array[SIZE+1];           array[]={0,12,23,11,55,2,34,18,20,48,22};           for(i=2;i               array[0]=...
分类:其他好文   时间:2014-07-27 11:11:32    阅读次数:238
Codeforces Round #258 (Div. 2) B. Sort the Array(简单题)
Codeforces Round #258 (Div. 2) B. Sort the Array(简单题)...
分类:其他好文   时间:2014-07-26 15:21:53    阅读次数:200
python 中 sorted() 和 list.sort() 的用法
今天用python自带的sorted对一个列表进行排序, 在这里总结一下只要是可迭代对象都可以用sorted 。sorted(itrearble, cmp=None, key=None, reverse=False)=号后面是默认值 默认是升序排序的, 如果想让结果降序排列,用reverse=Tru...
分类:编程语言   时间:2014-07-26 14:49:40    阅读次数:284
CodeForces 432C Prime Swaps
DescriptionYou have an arraya[1],?a[2],?...,?a[n], containing distinct integers from1ton. Your task is to sort this array in increasing order with the...
分类:其他好文   时间:2014-07-26 14:34:41    阅读次数:263
Sort List leetcode java
题目:Sort a linked list in O(n log n) time using constant space complexity.题解:考虑到要求用O(nlogn)的时间复杂度和constant space complexity来sort list,自然而然想到了merge sor....
分类:编程语言   时间:2014-07-26 09:51:57    阅读次数:307
B - Sort the Array
找出一个递减序列,如果有两个或两个以上递减序列直接no了,然后对递减序列两端数start,end,然后比较a[start]和a[end+1] , a[end] 和a[start-1] #include #include using namespace std; int a[100005]; int main(){    // freopen("in.txt","r",stdin); ...
分类:其他好文   时间:2014-07-26 03:03:26    阅读次数:220
83款 网络爬虫开源软件
1、http://www.oschina.net/project/tag/64/spider?lang=0&os=0&sort=view&搜索引擎 NutchNutch是一个开源Java实现的搜索引擎。它提供了我们运行自己的搜索引擎所需的全部工具。包括全文搜索和Web爬虫。 尽管Web搜索是漫游In...
分类:其他好文   时间:2014-07-26 01:46:06    阅读次数:442
Linux下判断cpu物理个数、几核
自己服务器的输出1. 查看物理CPU的个数#cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l12. 查看逻辑CPU的个数#cat /proc/cpuinfo |grep "processor"|wc -l83. 查看CPU是几核#cat /...
分类:系统相关   时间:2014-07-26 00:48:06    阅读次数:383
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!