ex07

package
v0.0.0-...-1a290c4 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Solve

func Solve(ns []int, k int) []int

Types

type FreqHeap

type FreqHeap []pair

func (FreqHeap) Len

func (h FreqHeap) Len() int

func (FreqHeap) Less

func (h FreqHeap) Less(i, j int) bool

func (*FreqHeap) Pop

func (h *FreqHeap) Pop() any

func (*FreqHeap) Push

func (h *FreqHeap) Push(x any)

func (FreqHeap) Swap

func (h FreqHeap) Swap(i, j int)

Jump to

Keyboard shortcuts

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