chapter15

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

This section is empty.

Functions

func ComputeBinomialCoefficients

func ComputeBinomialCoefficients(n, k int) int

func CountInversions

func CountInversions(arr []int) int

func LargestRectangleUnderSkyline

func LargestRectangleUnderSkyline(hs []int) int

func LevenshteinDistance

func LevenshteinDistance(a, b string) int

func LongestNondecreasingSubsequence

func LongestNondecreasingSubsequence(arr []int) int

func LongestSubarrayK

func LongestSubarrayK(arr []int, k int) int

func MaxSubmatrixRectangle

func MaxSubmatrixRectangle(mat [][]bool) int

func MaxSubmatrixRectangleImproved

func MaxSubmatrixRectangleImproved(mat [][]bool) int

func MaxSubmatrixSquare

func MaxSubmatrixSquare(mat [][]bool) int

func MaximumSubarrayInCircularArray

func MaximumSubarrayInCircularArray(arr []int) int

func NumberWays

func NumberWays(n, m int) int

func NumberWaysObstacles

func NumberWaysObstacles(n, m int, obstacles [][]bool) int

func PickingUpCoins

func PickingUpCoins(C []int) int

func PrettyPrinting

func PrettyPrinting(text string, width int) ([]int, int)

func PrettyPrinting2

func PrettyPrinting2(text string, width int) ([]int, int)

func ScoreCombination

func ScoreCombination(W []int, s int) int

func ScorePermutation

func ScorePermutation(W []int, s int) int

func StringInMatrix

func StringInMatrix(mat [][]int, xs []int) bool

func TreeDiameter

func TreeDiameter(root *WeightedTreeNode) int

func WordBreaking

func WordBreaking(dict map[string]bool, s string) bool

Types

type MaxPair

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

type Position

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

type WeightedTreeNode

type WeightedTreeNode struct {
	Value    int
	Children []*WeightedTreeNode
}

Jump to

Keyboard shortcuts

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