Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for order2CmpFunc (0.14 sec)

  1. src/slices/zsortanyfunc.go

    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)
    	a, b = order2CmpFunc(data, a, b, swaps, cmp)
    	return b
    }
    
    // medianAdjacentCmpFunc finds the median of data[a - 1], data[a], data[a + 1] and stores the index into 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)
Back to top