From 13a92834a19b913b171cc6379e778784b48c6dee Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Mon, 23 Dec 2024 23:17:10 +0000 Subject: [PATCH] remove unnecessary assignment --- day-23/internal/two/solve.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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)