summaryrefslogtreecommitdiff
path: root/2024/go/src/day7/main.go
diff options
context:
space:
mode:
authoromagdy <omar.professional8777@gmail.com>2024-12-06 21:16:15 +0200
committeromagdy <omar.professional8777@gmail.com>2024-12-06 21:16:15 +0200
commitd588a22bfb5d3a848e2c04eddd1f54d601045e59 (patch)
tree18a94aed5a5d224fe21365b22b4d771869c14ca8 /2024/go/src/day7/main.go
parentf86d2d992f18c8bfc735760f849b1f2c288f1a50 (diff)
downloadaoc-d588a22bfb5d3a848e2c04eddd1f54d601045e59.tar.xz
aoc-d588a22bfb5d3a848e2c04eddd1f54d601045e59.zip
Made isStuck blazingly fast by using an array of booleans to detect the cycle using the guard position and direction instead of of detecting cycle by count
Diffstat (limited to '2024/go/src/day7/main.go')
0 files changed, 0 insertions, 0 deletions