Home
Sign Up
Sign In
V2EX
›
问与答
快排中的 partition 函数到底有多少种写法?
mortonnex
·
Feb 16, 2019
· 2011 views
This topic created in 2820 days ago, the information mentioned may be changed or developed.
我目前看到的就有三种...
快排
partition
写法
函数
2 replies
•
2019-02-17 05:53:07 +08:00
agagega
Feb 16, 2019 via iPhone
1
好像维基百科上有两种,比较有代表性,一个是「挖坑填数」,一个是「从左往右过一遍把比 pivot 小的都移过去」
quinoa42
Feb 17, 2019
2
喜欢 clrs 的写法,简单易懂
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
1650 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 32ms ·
UTC 04:37
·
PVG 12:37
·
LAX 20:37
·
JFK 23:37
♥ Do have faith in what you're doing.
❯