feat: solve day 3 part 2

This commit is contained in:
Stevan Freeborn
2025-12-06 07:34:42 -06:00
parent cfa1ccf7c6
commit 4a52b67ccc
5 changed files with 104 additions and 100 deletions
+3 -3
View File
@@ -5,13 +5,13 @@ import (
"github.com/StevanFreeborn/advent-of-code-2025/internal/file"
)
func SolvePartOne(filePath string) int {
func Solve(filePath string, numOfCells int) int64 {
input := file.ReadLines(filePath)
total := 0
total := int64(0)
for _, line := range input {
bank := bank.From(line)
total += bank.Joltage()
total += bank.Joltage(numOfCells)
}
return total