feat: solve day 3 part 1

This commit is contained in:
Stevan Freeborn
2025-12-05 07:05:28 -06:00
parent eb85bd0360
commit 52422a9e16
6 changed files with 204 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
package main
import (
"github.com/StevanFreeborn/advent-of-code-2025/cmd/03/bank"
"github.com/StevanFreeborn/advent-of-code-2025/internal/file"
)
func SolvePartOne(filePath string) int {
input := file.ReadLines(filePath)
total := 0
for _, line := range input {
bank := bank.From(line)
total += bank.Joltage()
}
return total
}