feat: solve day 3 part 1
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user