Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New[T any]() internal.SortingAlgorithm[T]
Types ¶
type BubbleSort ¶
type BubbleSort[T any] struct{}
func (BubbleSort[T]) Sort ¶
func (b BubbleSort[T]) Sort(arr []T, compare func(a, b T) bool)
func (BubbleSort[T]) String ¶
func (b BubbleSort[T]) String() string
Click to show internal directories.
Click to hide internal directories.