浏览代码

Not needed

Piotr Czajkowski 3 月之前
父节点
当前提交
91128f7fed
共有 1 个文件被更改,包括 0 次插入3 次删除
  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