chapter5

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

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

Go to latest
Published: Feb 5, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidString = errors.New("StringToInt: invalid string")

Functions

func ClosestIntSameBits

func ClosestIntSameBits(x uint64) uint64

func ConvertBase

func ConvertBase(repr string, b1, b2 int) string

func GCD

func GCD(a, b int) int

func IntToString

func IntToString(x int) string

func Parity

func Parity(n uint64) uint8

func PowerSet

func PowerSet(S []int)

func PrimeSieve

func PrimeSieve(n int) []int

func ReverseBits

func ReverseBits(n uint64) uint64

func SpreadsheetEncoding

func SpreadsheetEncoding(col string) int

func StringToInt

func StringToInt(s string) (int, error)

func SwapBits

func SwapBits(n uint64, i uint, j uint) uint64

Types

type Rectangle

type Rectangle struct {
	// contains filtered or unexported fields
}

func IntersectRectangle

func IntersectRectangle(r1, r2 Rectangle) *Rectangle

Jump to

Keyboard shortcuts

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