2024-12-02 18:30:26 +00:00
|
|
|
package dayone
|
2024-12-02 02:06:26 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/onyx-and-iris/aoc2024/day-01/internal/one"
|
|
|
|
"github.com/onyx-and-iris/aoc2024/day-01/internal/two"
|
|
|
|
)
|
|
|
|
|
2024-12-06 19:57:07 +00:00
|
|
|
func Solve(buf []byte) (int, int, error) {
|
|
|
|
answerOne, err := one.Solve(buf)
|
2024-12-02 02:06:26 +00:00
|
|
|
if err != nil {
|
2024-12-02 18:30:26 +00:00
|
|
|
return 0, 0, err
|
2024-12-02 02:06:26 +00:00
|
|
|
}
|
|
|
|
|
2024-12-06 19:57:07 +00:00
|
|
|
answerTwo, err := two.Solve(buf)
|
2024-12-02 02:06:26 +00:00
|
|
|
if err != nil {
|
2024-12-02 18:30:26 +00:00
|
|
|
return 0, 0, err
|
2024-12-02 02:06:26 +00:00
|
|
|
}
|
2024-12-02 18:30:26 +00:00
|
|
|
|
|
|
|
return answerOne, answerTwo, nil
|
2024-12-02 02:06:26 +00:00
|
|
|
}
|