mirror of
https://github.com/onyx-and-iris/aoc2024.git
synced 2025-01-07 14:10:49 +00:00
22 lines
471 B
Go
22 lines
471 B
Go
package eighteen
|
|
|
|
import (
|
|
"github.com/onyx-and-iris/aoc2024/day-18/internal/config"
|
|
"github.com/onyx-and-iris/aoc2024/day-18/internal/one"
|
|
"github.com/onyx-and-iris/aoc2024/day-18/internal/two"
|
|
)
|
|
|
|
func Solve(buf []byte, config config.Config) (int, string, error) {
|
|
answerOne, err := one.Solve(buf, config)
|
|
if err != nil {
|
|
return 0, "", err
|
|
}
|
|
|
|
answerTwo, err := two.Solve(buf, config)
|
|
if err != nil {
|
|
return 0, "", err
|
|
}
|
|
|
|
return answerOne, answerTwo, nil
|
|
}
|