Refactor some of our tool code.
This commit is contained in:
parent
4cc37c6e39
commit
2614bb2def
16 changed files with 29 additions and 31 deletions
|
@ -5,7 +5,7 @@ import (
|
|||
"log"
|
||||
"os"
|
||||
|
||||
"git.annabunch.es/annabunches/adventofcode/2020/lib/fileutils"
|
||||
"git.annabunch.es/annabunches/adventofcode/2020/lib/util"
|
||||
)
|
||||
|
||||
func getMax(values map[int]bool) int {
|
||||
|
@ -88,7 +88,7 @@ func countPaths(node *Node, target int) int {
|
|||
|
||||
func main() {
|
||||
step := os.Args[1]
|
||||
values := fileutils.InputParserIntMap(os.Args[2])
|
||||
values := util.InputParserIntMap(os.Args[2])
|
||||
|
||||
diffMap := make(map[int]int)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue