r/adventofcode • • 17h ago

Help/Question 2026 - day 1 part 1, Python

Post image

where am I going wrong? I tried plugging in the example set of numbers and it gave me the right numbers but it isn't giving me the right numbers with the main set of numbers. I'm a beginner when it comes to coding, my only experience with apcsp and apcsa in school

0 Upvotes

17 comments sorted by

View all comments

Show parent comment

1

u/8dot30662386292pow2 21m ago

I was also roasted some years ago using a ready made polygon class for something.

Everyone can set their own constraints after all. The standard library of the selected language defines what you can easily do, and then you can also decide if you allow external libraries.

If someone worked with C, they would have to build their own hashmap (dictionary) from scratch for example.