Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for partitionEqual (0.63 sec)

  1. src/sort/zsortinterface.go

    		}
    		data.Swap(i, j)
    		i++
    		j--
    	}
    	data.Swap(j, a)
    	return j, false
    }
    
    // partitionEqual 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 partitionEqual(data Interface, a, b, pivot int) (newpivot int) {
    	data.Swap(a, pivot)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 13 20:16:24 UTC 2022
    - 11.2K bytes
    - Viewed (0)
  2. src/sort/gen_sort_variants.go

    		i++
    		j--
    	}
    	{{Swap "data" "j" "a"}}
    	return j, false
    }
    
    // partitionEqual{{.FuncSuffix}} 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 partitionEqual{{.FuncSuffix}}{{.TypeParam}}(data {{.DataType}}, a, b, pivot int {{.ExtraParam}}) (newpivot int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 19.6K bytes
    - Viewed (0)
Back to top