- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for medianCmpFunc (0.1 sec)
-
src/slices/zsortanyfunc.go
if cmp(data[b], data[a]) < 0 { *swaps++ return b, a } return a, b } // medianCmpFunc returns x where data[x] is the median of data[a],data[b],data[c], where x is a, b, or c. func medianCmpFunc[E any](data []E, a, b, c int, swaps *int, cmp func(a, b E) int) int { a, b = order2CmpFunc(data, a, b, swaps, cmp) b, c = order2CmpFunc(data, b, c, swaps, cmp)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 23:33:29 UTC 2023 - 12.8K bytes - Viewed (0)