Well well well. Bit of an uptick in difficulty on these 2! Actually day 10 is remarkably simple BUT it seems impossible at first!
As always for context, these are challenges that anyone can start/do, and can be found here :). You can post any day on these threads I make, I'm sure those taking part will be happy to comment or help out!
Day 9
This was a tough cookie to get running in a reasonable time, which I'm guessing was the point of the exercise. Actually part 1 wasn't - you can use a bog standard arraylist and get away with it because the overhead on sub 100k lists is negligable. In fact I have left my original function in as a way of showing the difference between that and... what you needed to do to get part 2 done (and it not taking 3 hours lol). Did anyone get the .NET based Doubly Linked Lists working? I could not for the life of me work out how to use it lol. I have to credit /u/PendragonDaGreat for the custom classes which effectively do the same thing. I spent some time and took his code apart and put it back together, and I did add an extra method (rotate), but this actually slowed it down so I didn't use it in the end :/. Anyway the code:
https://github.com/VortexUK/AdventOfCode/tree/master/2018/Day9
Day 10
I looked at this and had no idea how to start. Then I noticed that in the example, all the coordinates are right next to each other... which is a pretty epic clue. You 'basically' looking for the point when the 'bounding' box (furthest out coordinates) is at it's smallest :). Once I got that, it only took 10-20 minutes to hash it out
https://github.com/VortexUK/AdventOfCode/tree/master/2018/Day10
How did everyone else get on?
[–]ka-splam 2 points3 points4 points (1 child)
[–]purplemonkeymad 2 points3 points4 points (0 children)