From e89b766c4fc2e76c8910c21ae0a71c5e81af92a2 Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Fri, 12 Dec 2025 16:26:58 -0600 Subject: [PATCH] refactor: use existing bar for row loop --- cmd/06/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/06/main.go b/cmd/06/main.go index 1bbdeac..637edea 100644 --- a/cmd/06/main.go +++ b/cmd/06/main.go @@ -47,7 +47,7 @@ func SolvePartTwo(filePath string) int { for operatorIndex := operatorRowLength - 1; operatorIndex >= 0; operatorIndex-- { var operandBuilder strings.Builder - for row := range numOfRows - 1 { + for row := range operatorRowIndex { v := string(input[row][operatorIndex]) operandBuilder.WriteString(v) }