yinghuansouqi
V2EX  ›  问与答

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

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

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