MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / ComputeAlphabet

Function ComputeAlphabet

strings/ahocorasick/shared.go:61–67  ·  view source on GitHub ↗

ComputeAlphabet Function that returns string of all the possible characters in given patterns.

(p []string)

Source from the content-addressed store, hash-verified

59
60// ComputeAlphabet Function that returns string of all the possible characters in given patterns.
61func ComputeAlphabet(p []string) (s string) {
62 s = p[0]
63 for i := 1; i < len(p); i++ {
64 s = s + p[i]
65 }
66 return s
67}
68
69// IntArrayCapUp Dynamically increases an array size of int's by 1.
70func IntArrayCapUp(old []int) (new []int) {

Callers 1

BuildExtendedAcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected