summary refs log tree commit diff homepage
path: root/2019/day04.sh
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-12-12 00:50:59 -0500
committerJune McEnroe <june@causal.agency>2020-11-22 00:14:26 -0500
commita5332be91a0aa565aedce2053f5bbc68dd470dbd (patch)
tree3ca8fc2af80bbbd164388e703ff8ef47f21aaead /2019/day04.sh
parentSolve day 10 part 1 (diff)
downloadaoc-a5332be91a0aa565aedce2053f5bbc68dd470dbd.tar.gz
aoc-a5332be91a0aa565aedce2053f5bbc68dd470dbd.zip
Solve day 10 part 2
I'm so fucking frustrated with this one. I was stuck for hours trying to
sort the points by angle not realizing that (int)(angle(a) - angle(b))
would be 0 for all angles with differences smaller than 1. I also wanted
to do the sort by atan2(-y, x) - π/2 intuitively to get "up" be zero,
but I never got that to work.
Diffstat (limited to '2019/day04.sh')
0 files changed, 0 insertions, 0 deletions