Piotr Czajkowski il y a 3 mois
Parent
commit
91128f7fed
1 fichiers modifiés avec 0 ajouts et 3 suppressions
  1. 0 3
      22/code.go

+ 0 - 3
22/code.go

@@ -76,7 +76,6 @@ func sequenceKey(sequence []int) string {
 }
 
 func highestSum(allLastDigits [][]int, iterations int) int {
-	var allSequences [][]int
 	sums := make(map[string]int)
 	for _, lastDigits := range allLastDigits {
 		var sequence []int
@@ -97,8 +96,6 @@ func highestSum(allLastDigits [][]int, iterations int) int {
 				}
 			}
 		}
-
-		allSequences = append(allSequences, sequence)
 	}
 
 	var highest int