diff options
author | June McEnroe <june@causal.agency> | 2019-12-12 00:50:59 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-12-12 00:50:59 -0500 |
commit | f0e37d78d25dd677eb0784d889e4b1f3f0d830b6 (patch) | |
tree | 93aa2a86f796454e7181588f539267ef47842991 /2016 | |
parent | Solve day 10 part 1 (diff) | |
download | aoc-f0e37d78d25dd677eb0784d889e4b1f3f0d830b6.tar.gz aoc-f0e37d78d25dd677eb0784d889e4b1f3f0d830b6.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 '2016')
0 files changed, 0 insertions, 0 deletions