heap

package
v0.0.0-...-d3fc627 Latest Latest
Warning

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

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

Documentation

Overview

* * *@author 吴昊轩 *@create 2019-10-0315:42

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fix

func Fix(x Interface, i int)

func Init

func Init(x Interface)

func Pop

func Pop(h Interface) interface{}

func Push

func Push(h Interface, x interface{})

func Remove

func Remove(h Interface, i int) interface{}

Types

type Interface

type Interface interface {
	Less(i, j int) bool
	Swap(i, j int)
	Len() int
	Push(x interface{})
	Pop() interface{}
}

Jump to

Keyboard shortcuts

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