advent-of-code/2015-python/tests
Anders Englöf Ytterström 838d06100b Solve 2015:11 "Corporate Policy"
I brainfarted and had a hard time trying to
understand the instructions.

> Incrementing is just like counting with numbers: xx, xy, xz, ya, yb, and so on. Increase the rightmost letter one step; if it was z, it wraps around to a, and repeat with the next letter to the left until one doesn't wrap around.

I only managed to understand it by looking at solutions on the
subreddit, figuring out the correct behavior:

az -> ba, azzz -> baaa, azzzzz -> baaaaa etc.

I also sped up the test case containing `ghi` as initial password,
by looking for the leftmost invalid I, L or O and increase it,
replacing all following chars with `a`.

ghijklmn -> ghjaaaaa.
2023-11-20 20:54:43 +01:00
..
__init__.py Solve day 5-6 2015 2022-11-25 12:03:57 +01:00
test_day_08.py Solve 2015:8 "Machinesticks" 2023-11-20 20:54:43 +01:00
test_day_09.py Solve 2015:9 "All in a Single Night" 2023-11-20 20:54:43 +01:00
test_day_10.py Solve 2015:10 "Elves Look, Elves Say" 2023-11-20 20:54:43 +01:00
test_day_11.py Solve 2015:11 "Corporate Policy" 2023-11-20 20:54:43 +01:00