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
NUMBER_DICT = {
"one": "on1e",
"two": "tw2o",
"three": "thr3ee",
"four": "fo4ur",
"five": "fi5ve",
"six": "si6x",
"seven": "sev7en",
"eight": "ei8ght",
"nine": "ni9ne",
"one": "o1e",
"two": "t2o",
"three": "t3e",
"four": "4",
"five": "5e",
"six": "6",
"seven": "7n",
"eight": "e8t",
"nine": "n9e",
}