diff --git a/day-23/internal/two/solve.go b/day-23/internal/two/solve.go index 1e79699..bd19d29 100644 --- a/day-23/internal/two/solve.go +++ b/day-23/internal/two/solve.go @@ -72,9 +72,7 @@ func next( } for _, v := range P.List() { - nextR := append(R, v) - - next(nextR, P.Intersection(networks[v]), X.Intersection(networks[v]), cliquesChan, networks) + next(append(R, v), P.Intersection(networks[v]), X.Intersection(networks[v]), cliquesChan, networks) P.Remove(v) X.Add(v)