mirror of
https://github.com/onyx-and-iris/aoc2024.git
synced 2025-01-09 14:20:48 +00:00
17 lines
204 B
Go
17 lines
204 B
Go
|
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
|
||
|
}
|