V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
yinghuansouqi
V2EX  ›  问与答

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

  •  
  •   yinghuansouqi · 2018-11-09 17:22:09 +08:00 · 1271 次点击
    这是一个创建于 1966 天前的主题,其中的信息可能已经有所发展或是发生改变。
    2 条回复    2018-11-09 17:54:39 +08:00
    kindjeff
        1
    kindjeff  
       2018-11-09 17:27:04 +08:00
    https://zh.wikipedia.org/wiki/%E5%BF%AB%E9%80%9F%E6%8E%92%E5%BA%8F#Java

    是快排啊,和啊哈算法上面的快排实现一样
    yinghuansouqi
        2
    yinghuansouqi  
    OP
       2018-11-09 17:54:39 +08:00
    @kindjeff 我执行了一下发现 pivot 不在最终位置
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3356 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 13:38 · PVG 21:38 · LAX 06:38 · JFK 09:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.