package
1.8.8
Repository: https://github.com/fzf-labs/fpkg.git
Documentation: pkg.go.dev

# README

算法

# Functions

BinaryIterativeSearch 二分迭代查找 如果找不到返回 -1.
BinarySearch 二分查找 如果找不到返回 -1.
BubbleSort 冒泡排序.
CountSort 计数排序.
DoubleAverage 二倍均值算法 抢红包.
HeapSort 堆排序.
InsertionSort 插入排序算法.
LinearSearch 线性搜索 如果找不到返回 -1.
MergeSort 归并排序.
New creates a new Consistent object with a default setting of 20 replicas for each entry.
QuickSort 快速排序.
SelectionSort 选择排序算法.
ShellSort 希尔排序.
TopK 取前K个元素,基于切片实现.

# Variables

ErrEmptyCircle is the error returned when trying to get an element when nothing has been added to hash.

# Structs

Consistent holds the information about the members of the consistent hash circle.

# Interfaces

Comparator 比较器用于比较两个值.
No description provided by the author