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