yinghuansouqi
V2EX  ›  问与答

大家有没有发现维基百科中文网的快速排序词条 Java 实现的不是快排

  •  
  •   yinghuansouqi · Nov 9, 2018 · 1850 views
    This topic created in 2786 days ago, the information mentioned may be changed or developed.
    2 replies    2018-11-09 17:54:39 +08:00
    kindjeff
        1
    kindjeff  
       Nov 9, 2018
    https://zh.wikipedia.org/wiki/%E5%BF%AB%E9%80%9F%E6%8E%92%E5%BA%8F#Java

    是快排啊,和啊哈算法上面的快排实现一样
    yinghuansouqi
        2
    yinghuansouqi  
    OP
       Nov 9, 2018
    @kindjeff 我执行了一下发现 pivot 不在最终位置
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3014 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 07:30 · PVG 15:30 · LAX 00:30 · JFK 03:30
    ♥ Do have faith in what you're doing.