reduce replacement strings to minimum

This commit is contained in:
Heiko Ludwig 2023-12-01 21:47:49 +01:00
parent d8fcaedfda
commit a47cb11a42

View file

@ -3,15 +3,15 @@
# https://adventofcode.com/2023/day/1 # https://adventofcode.com/2023/day/1
NUMBER_DICT = { NUMBER_DICT = {
"one": "on1e", "one": "o1e",
"two": "tw2o", "two": "t2o",
"three": "thr3ee", "three": "t3e",
"four": "fo4ur", "four": "4",
"five": "fi5ve", "five": "5e",
"six": "si6x", "six": "6",
"seven": "sev7en", "seven": "7n",
"eight": "ei8ght", "eight": "e8t",
"nine": "ni9ne", "nine": "n9e",
} }