Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SplitKey = struct{}{}
SplitKey for context
Functions ¶
Types ¶
type Comparable ¶
type Comparable interface {
// String for comparison, such as the hash
String() string
}
Comparable interface
type Sequence ¶
type Sequence []Comparable
Sequence list
func StandardLCS ¶
StandardLCS implementation for testing purpose only, because it's very inefficient. https://en.wikipedia.org/wiki/Longest_common_subsequence_problem#LCS_function_defined.
func (Sequence) IsSubsequenceOf ¶
IsSubsequenceOf returns true if x is a subsequence of y
Click to show internal directories.
Click to hide internal directories.