utils

package
v0.0.0-...-2c11f97 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package implements utility functions used by algo internally. Although it is public and can be imported to use.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(a, b []int) bool

Equal tells whether a and b contain the same elements. A nil argument is equivalent to an empty slice.

func Min

func Min(a, b int) int

Minimum of two int

func Swap

func Swap(a, b *int)

function to swap two int used internally

func TrailingZeros

func TrailingZeros(a int) int

calculate trailing zeros used internally

Types

This section is empty.

Jump to

Keyboard shortcuts

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