Interesting Bits from AoC 2025 Day 1
Programming
Python
Advent of Code
Mathematics
The dictionary accumulates modulating integers.s
- Modulo division can be a way to loop through a list of numbers without needing a
forloop. For examples, using%100to rotate through a list of numbers from 0-99. - Integer division can be used to check the number of times a list of numbers loops through a certain number, without needing a
forloop. For example, using//100to count the number of times 0 has been looped through in a list of numbers from 0-99. - Use
itertools.accumulateto perfom accumulation on a list of numbers - Dictionaries, such as
{'L':-1, 'R':1}, can be used to replaceif/elifblocks