maxSumAfterPartitioning

package
v0.0.0-...-b71b16c Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(num int) int

func Manhattan

func Manhattan(x1 int, y1 int, x2 int, y2 int) int

func Max

func Max[T cmp.Ordered](nums ...T) T

Max returns maximum of `nums` of type `T` and have more friendly interface then build-in `max()`. Panics if `nums` have zero elements.

func Min

func Min[T cmp.Ordered](nums ...T) T

Min returns minimum of `nums` of type `T` and have more friendly interface then build-in `min()`. Panics if `nums` have zero elements.

func Sum

func Sum(nums ...int) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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