- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for partitionEqualCmpFunc (0.24 sec)
-
src/slices/zsortanyfunc.go
i++ j-- } data[j], data[a] = data[a], data[j] return j, false } // partitionEqualCmpFunc partitions data[a:b] into elements equal to data[pivot] followed by elements greater than data[pivot]. // It assumed that data[a:b] does not contain elements smaller than the data[pivot]. func partitionEqualCmpFunc[E any](data []E, a, b, pivot int, cmp func(a, b E) int) (newpivot int) { data[a], data[pivot] = data[pivot], data[a]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 23:33:29 UTC 2023 - 12.8K bytes - Viewed (0)