resolve some TODOs

This commit is contained in:
alexchao26
2021-12-30 19:18:07 -05:00
parent 57a2222810
commit 6f6cc42601
3 changed files with 1 additions and 4 deletions
-1
View File
@@ -1,4 +1,3 @@
// TODO: pull combinations, multiplying a slice of ints, into algos and mathy packages?
package main
import (
+1 -2
View File
@@ -47,8 +47,7 @@ func spinlock(input string, part int) int {
}
current = current.next
// progress log for part 2 brute force...
// todo optimize this slow pos
// progress log for part 2 brute force... this is SLOW
if i%1000000 == 0 {
log.Println(i, "steps done")
}
-1
View File
@@ -260,7 +260,6 @@ func (graph *Graph) dfsMinmumDistance() int {
// helper function to generate a cache string key
// cache string is of the form entryKey:allKeysToFind
func makeCacheKey(entry string, keysFound map[string]bool, totalKeys int) string {
// TODO: move this into the graph? to avoid making it 910238190382 times
allKeys := make([]string, totalKeys)
for i := 0; i < totalKeys; i++ {
allKeys[i] = cast.ASCIIIntToChar(int('a') + i)