Summary for those just joining us:
Advent of Code is an annual Christmas themed coding challenge that runs from December 1st until christmas. Each day the coding problems get progressively harder. We have a leaderboard and pretty good turnout, so feel free to hop in at any time and show your stuff!
Whether you have a single line monstrosity or a beautiful phone book sized stack of OOP code, you can export it in a nice little image for sharing at https://carbon.vercel.app
What did you think about today's problem?
Our Code is 2416137-393b284c (No need to share your profile, you have the option to join anonymously if you don't want us to see your github)
Jump in the discussion.
No email address required.
Part 1 was straight forward path finding, just annoying to keep track of indexes. I need to take a break and think about part 2
Jump in the discussion.
No email address required.
It's simpler than path finding in that there is only ever one direction you can go, originally I thought I'd have to pull out A* and was relieved that it wasn't that kind of problem.
Jump in the discussion.
No email address required.
I think I went this way because you don't know the shape of S, but yeah, I could probably combine the neighbour finding and path building steps if I was smart about it
Jump in the discussion.
No email address required.
More options
Context
More options
Context
Kinda crazy to keep track of a max value when you can just find the length of the loop by traversing it once and divide by two
Jump in the discussion.
No email address required.
Thanks, that's a good trick. This is my first time doing coding puzzles so I'm suprised I'm keeping up tbh
Jump in the discussion.
No email address required.
I like seeing strange approaches to problems. It adds one more thing to the toolkit that might be needed later
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
Part 2 (algo from SO) and cleaned up because doing it with flat arrays was stupid
Jump in the discussion.
No email address required.
More options
Context
More options
Context