快速排序

type
status
date
slug
summary
tags
category
icon
password
  • 算法步骤
1.选定Pivot中心轴 2.将大于Pivot的数字放在Pivot的右边 3.将小于Pivot的数字放在Pivot的左边 4.分别对左右子序列重复前三步操作
  • 时空复杂度
    • 时间复杂度 O(nlogn)
    • 空间复杂度 O(logn)
  • 算法图解
notion image
  • 实现
Loading...

© ShellMing 2019-2025