zoukankan      html  css  js  c++  java
  • 果然逆天,处理一亿条int32数据排序,需要耗时32秒

    [root@localhost contest]# ./test
    hehe:10
    ----------------------------------------before quick sort--------------
    ----------------------------------------after quick sort-----------------
    ok
    count:2  Used Time:0.000190
    hehe:100
    ----------------------------------------before quick sort--------------
    ----------------------------------------after quick sort-----------------
    ok
    count:4  Used Time:0.000053
    hehe:1000
    ----------------------------------------before quick sort--------------
    ----------------------------------------after quick sort-----------------
    ok
    count:6  Used Time:0.000569
    hehe:10000
    ----------------------------------------before quick sort--------------
    ----------------------------------------after quick sort-----------------
    ok
    count:8  Used Time:0.003498
    hehe:100000
    ----------------------------------------before quick sort--------------
    ----------------------------------------after quick sort-----------------
    ok
    count:10  Used Time:0.044151
    hehe:1000000
    ----------------------------------------before quick sort--------------
    ----------------------------------------after quick sort-----------------
    ok
    count:12  Used Time:0.236078
    hehe:10000000
    ----------------------------------------before quick sort--------------
    ----------------------------------------after quick sort-----------------
    ok
    count:14  Used Time:2.799460
    hehe:100000000
    ----------------------------------------before quick sort--------------
    ----------------------------------------after quick sort-----------------
    ok
    count:16  Used Time:32.029633
    /***********************************************

    看书看原版,原汁原味。

    不会英文?没关系,硬着头皮看下去慢慢熟练,才会有真正收获。

    没有原书,也要网上找PDF来看。

    网上的原版资料多了去了,下载东西也到原始下载点去看看。

    你会知其所以然,呵呵。

    ***********************************************/

  • 相关阅读:
    4.PHP正则表达式与数组
    3.PHP条件语句及其字符串相关函数
    3.PHP条件语句及其字符串相关函数
    2.PHP语言基础
    2.PHP语言基础
    1.简单认识PHP和环境搭建
    1.简单认识PHP和环境搭建
    Windows PE 第十章 加载配置信息
    #Leetcode# 20.Valid Parentheses
    #Leetcode# 14. Longest Common Prefix
  • 原文地址:https://www.cnblogs.com/dpblue/p/3921846.html
Copyright © 2011-2022 走看看