mirror of
https://github.com/onyx-and-iris/aoc2024.git
synced 2025-01-08 13:50:48 +00:00
21 lines
373 B
Go
21 lines
373 B
Go
|
package daytwentytwo
|
||
|
|
||
|
import (
|
||
|
"github.com/onyx-and-iris/aoc2024/day-22/internal/one"
|
||
|
"github.com/onyx-and-iris/aoc2024/day-22/internal/two"
|
||
|
)
|
||
|
|
||
|
func Solve(buf []byte) (int, int, error) {
|
||
|
answerOne, err := one.Solve(buf)
|
||
|
if err != nil {
|
||
|
return 0, 0, err
|
||
|
}
|
||
|
|
||
|
answerTwo, err := two.Solve(buf)
|
||
|
if err != nil {
|
||
|
return 0, 0, err
|
||
|
}
|
||
|
|
||
|
return answerOne, answerTwo, nil
|
||
|
}
|