algo

package
v0.0.0-...-2d825c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinarySearch

func BinarySearch(arr []interface{}, x interface{}, less common.Less) int

BinarySearch implements binary search algorithm. It returns the index if element x is found in arr Otherwise it returns -1.

func InsertSort

func InsertSort(arr []int) []int

InsertSort ...

func MergeSort

func MergeSort(arr []int) []int

MergeSort ...

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL