heap

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT-0 Imports: 1 Imported by: 0

Documentation

Overview

Package heap implements Floyd's bottom-up Heapsort.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sort

func Sort[T cmp.Ordered](s []T)

Sort uses the Heapsort algorithm to sort a slice. It uses O(n·log(n)) time and O(1) space.

Types

This section is empty.

Jump to

Keyboard shortcuts

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