refactor: use existing bar for row loop

This commit is contained in:
Stevan Freeborn
2025-12-12 16:26:58 -06:00
committed by GitHub
parent c41ba29791
commit e89b766c4f
+1 -1
View File
@@ -47,7 +47,7 @@ func SolvePartTwo(filePath string) int {
for operatorIndex := operatorRowLength - 1; operatorIndex >= 0; operatorIndex-- { for operatorIndex := operatorRowLength - 1; operatorIndex >= 0; operatorIndex-- {
var operandBuilder strings.Builder var operandBuilder strings.Builder
for row := range numOfRows - 1 { for row := range operatorRowIndex {
v := string(input[row][operatorIndex]) v := string(input[row][operatorIndex])
operandBuilder.WriteString(v) operandBuilder.WriteString(v)
} }