algo

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

算法

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinaryFind

func BinaryFind(arr *[]int, findv int) (bool, int)

二分查找

func BinaryFind2

func BinaryFind2(arr *[]int, leftIndex int, rightIndex int, findVal int)

func Mpp

func Mpp(arr *[]int, asc bool) *[]int

冒泡排序, asc = true 为升序排列 false 为降序

Types

This section is empty.

Jump to

Keyboard shortcuts

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