Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BubbleSort ¶
BubbleSort is the simplest sorting algorithm that works by repeated swapping the adjacent elements if they are in the wrong order.
func InsertionSort ¶
func InsertionSort(list []int)
InsertionSort is a simple sorting algorithm that works similar to the way you sort playing cards in your hands. The array is virtually split into a sorted and an unsorted part. Values from the unsorted part are picked and placed at the correct position in the sorted part.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.