- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for median_func (0.12 sec)
-
src/sort/zsortfunc.go
func order2_func(data lessSwap, a, b int, swaps *int) (int, int) { if data.Less(b, a) { *swaps++ return b, a } return a, b } // median_func returns x where data[x] is the median of data[a],data[b],data[c], where x is a, b, or c. func median_func(data lessSwap, a, b, c int, swaps *int) int { a, b = order2_func(data, a, b, swaps) b, c = order2_func(data, b, c, swaps) a, b = order2_func(data, a, b, swaps)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 13 20:16:24 UTC 2022 - 11.5K bytes - Viewed (0)