r/adventofcode • • Dec 11 '22

Visualization [2022 Days 1-10] [Python] A graphical representation of The Beast, a single line of code that solves every day's challenge so far!

Post image
230 Upvotes

27 comments sorted by

View all comments

Show parent comment

2

u/AstronautNew8452 Dec 11 '22

It would seem to me there's some additional room for improvement. Some of the Part1/2 could probably be combined into one pass through reading the input file, instead of two. It would of course make the code uglier still, but it might be fun.

1

u/ImpossibleSav Dec 11 '22

Oh you're definitely right, there's plenty of areas for improvement! Every day I look back at my previous code and notice things I could optimize or change. Unfortunately I don't have the time to go back and update any of them for now, but maybe in the future! :)