码迷,mamicode.com
首页 >  
搜索关键字:awk sort    ( 17174个结果)
Linux 下 Redis使用介绍
出自http://blog.csdn.net/ajun_studio/article/details/6698147 和http://www.oschina.net/question/12_18065?sort=time Redis 是一个高性能的key-value数据库。 redis的出现,很大程度补偿了memcached这类keyvalue存储的不足,在部 分场合可以对关系数据库起到很好...
分类:系统相关   时间:2014-07-28 00:13:29    阅读次数:598
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
linux awk详解与应用
linux awk详解与应用...
分类:系统相关   时间:2014-07-26 17:18:32    阅读次数:298
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!