Forum Discussion
Advent of Code - 2024
Who's in? I got day 1 in python knocked out (yesterday now, 12:35am local as I write this) earlier today. Going to see if I can mock up part 1 of day 1 in an iRule for tomorrow morning's brain exercise...will share my results!
I created a leaderboard if we want to get competitive in all this. Code is 4383550-0e9fdf83 if you want to join in.
17 Replies
- buulam
Admin
Trying in python - already stumped on part 2 of day 1 😂
Need to add more debugging but it will have to wait till tomorrow
- Falken224
Employee
Happy to join in on another leaderboard. :-)
I've been looking forward to this for a couple weeks already. Been going back through the 2015 problems, just for fun -- and 'cause I so rarely get to code anymore!
Dunno how much I'll be on here. (TBH, didn't even know this place existed) But always happy to share code/perspectives! - JRahm
Admin
Day 2 learnings...
- python sorted function doesn't behave the same on integers as strings as it does as pure integers.
- sometimes the explanation itself is hard to understand...looking at you part 2!
- Bart_Scully
Employee
I haven't actually pushed the first two days yet, but I always participate at least until the problems get so hard that I can't finish them in a couple hours (usually make it to day 8-9...
https://github.com/xb4r7x/adventOfCode - buulam
Admin
Turned out I had day 1 part 2 correct (albeit using 10x the amount of code everyone else used...)
I interpreted the instructions wrong and had run my algorithm twice, once for each column. Then added the 2 answers together and kept submitting various iterations of that.
Anyways, this small step is a leap forward for me with python or any coding for that matter. I'll take the little victory 😊
Edit: In all it's glory... https://github.com/buulam/aoc2024/blob/main/dec1/main.py
- jevans
Employee
Probably the first proper Go program I've ever written. Probably doing a lot wrong. https://github.com/4141done/advent_of_code_solutions/blob/main/2024/go/main/day1/day1.go
Solutions in Elixir for a more fun exercise. I always love it when I get to pattern match on strings like this https://github.com/4141done/advent_of_code_solutions/blob/main/2024/elixir/day1/lib/day1.ex
We'll see how many more days I hang in. Like others I usually stop once it starts taking too much of my time
- JRahm
Admin
Day 4!
Rare puzzle where part 2 is easier than part 1. Grid searches...a lot of pencil and paper mapping for me on these. Easier when you aren't wrapping a row or column outside the grid boundary.
- JRahm
Admin
Paper example I just shared on X:
- JRahm
Admin
Day 5...part 1 wasn't so bad, but I ended up with a lot more code than I hoped for. I threw in the towel on part 2 and watched a video solution. Ugh...first fail this year. I noticed a couple on the leaderboard are still perfect!
- JRahm
Admin
Day 6...
A LOT of paper processing on this one. Didn't have time for part 2, that'll be a post-Dec exercise. I started down the path of only storing the obstacles but the test data and the real data are not the same thing and I didn't account for more than one # in a row/col during test. So the big learning today for me is look at the real data before formulating a plan. I had to rework my parsing and strategy. - JRahm
Admin
Day 7-9...
Day 7 part 1 no biggie.
Day 8 and 9? Uh...I don't even know how to read the instructions, let alone actually solve the challenge. These will be January challenges for Jason.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com