chapter12

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Anagrams

func Anagrams(words []string) [][]string

func AnonymousLetter

func AnonymousLetter(L string, M string) bool

func CanStringBePalindrome

func CanStringBePalindrome(s string) bool

func NearestRepetition

func NearestRepetition(S []string) int

func SearchFrequentItems

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

func SmallestSubarrayCoveringSet

func SmallestSubarrayCoveringSet(A, Q []string) []string

func SubseqCover

func SubseqCover(A, Q []string) []string

Types

type Cacheable

type Cacheable interface {
	Key() string
}

type CoverValue

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

type LRUCache

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

func NewLRUCache

func NewLRUCache(capacity int) *LRUCache

func (*LRUCache) Erase

func (c *LRUCache) Erase(key string) bool

func (*LRUCache) Get

func (c *LRUCache) Get(key string) Cacheable

func (*LRUCache) Set

func (c *LRUCache) Set(cacheable Cacheable)

type LRUCacheItem

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

type RuneSlice

type RuneSlice []rune

func (RuneSlice) Len

func (p RuneSlice) Len() int

func (RuneSlice) Less

func (p RuneSlice) Less(i, j int) bool

func (RuneSlice) Swap

func (p RuneSlice) Swap(i, j int)

Jump to

Keyboard shortcuts

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