Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for insertionSort_func (0.18 sec)

  1. src/sort/zsortfunc.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package sort
    
    // insertionSort_func sorts data[a:b] using insertion sort.
    func insertionSort_func(data lessSwap, a, b int) {
    	for i := a + 1; i < b; i++ {
    		for j := i; j > a && data.Less(j, j-1); j-- {
    			data.Swap(j, j-1)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 13 20:16:24 UTC 2022
    - 11.5K bytes
    - Viewed (0)
Back to top