heap

package
v0.0.0-...-10ffd4c Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: MIT Imports: 1 Imported by: 0

README

堆排序

  1. 把序列进行堆序列化,使得最大的元素处于列首。
  2. 尾首元素互换位置,即最大的元素被放在了末尾。
  3. 对前n-1个元素,重新堆有序化。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sort

func Sort(a Interface)

Sort 使用堆排序

Types

type Interface

type Interface interface {
	sort.Interface
	Divide(int, int) Interface
}

Interface 是排序的接口

Jump to

Keyboard shortcuts

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