(gap int)
| 9 | import "github.com/TheAlgorithms/Go/constraints" |
| 10 | |
| 11 | func getNextGap(gap int) int { |
| 12 | gap = (gap * 10) / 13 |
| 13 | if gap < 1 { |
| 14 | return 1 |
| 15 | } |
| 16 | return gap |
| 17 | } |
| 18 | |
| 19 | // Comb is a simple sorting algorithm which is an improvement of the bubble sorting algorithm. |
| 20 | func Comb[T constraints.Ordered](data []T) []T { |