- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for insertionSort_func (0.19 sec)
-
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)