mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-14 11:36:08 +08:00
build
This commit is contained in:
@ -168,8 +168,6 @@ comments: true
|
|||||||
=== "Swift"
|
=== "Swift"
|
||||||
|
|
||||||
```swift title="quick_sort.swift"
|
```swift title="quick_sort.swift"
|
||||||
[class]{}-[func]{swap}
|
|
||||||
|
|
||||||
/* 哨兵划分 */
|
/* 哨兵划分 */
|
||||||
func partition(nums: inout [Int], left: Int, right: Int) -> Int {
|
func partition(nums: inout [Int], left: Int, right: Int) -> Int {
|
||||||
// 以 nums[left] 为基准数
|
// 以 nums[left] 为基准数
|
||||||
|
Reference in New Issue
Block a user