var wrapSeed … func TestWrap(t *testing.T) { … } // wrapSlow is an O(n²) reference implementation for wrap. // It returns a minimal-score sequence along with the score. // It is OK if wrap returns a different sequence as long as that // sequence has the same score. func wrapSlow(words []string, max int) (seq []int, score int64) { … }