maximumproductoftwoelementsinanarray

package
v0.0.0-...-276c0a7 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaxProduct

func MaxProduct(nums []int) int

Types

type MaxHeap

type MaxHeap []int

func (MaxHeap) Len

func (m MaxHeap) Len() int

func (MaxHeap) Less

func (m MaxHeap) Less(i, j int) bool

func (*MaxHeap) Pop

func (m *MaxHeap) Pop() any

func (*MaxHeap) Push

func (m *MaxHeap) Push(x any)

func (MaxHeap) Swap

func (m MaxHeap) Swap(i, j int)

Jump to

Keyboard shortcuts

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