aoc2024/day-23/internal/two/clique.go

17 lines
204 B
Go
Raw Permalink Normal View History

2024-12-23 19:56:13 +00:00
package two
import "slices"
type clique struct {
values []string
}
func (c *clique) Len() int {
return len(c.values)
}
func (c *clique) sorted() []string {
slices.Sort(c.values)
return c.values
}