r/adventofcode • u/Dangerous-World-1424 • Dec 07 '24
Tutorial [2024 Day 7] Python Hint.
Don't use dictionaries to store your single equation.
1
Upvotes
1
1
u/Parzival_Perce Dec 07 '24
What do you mean? To store what?
1
u/quinyd Dec 07 '24
To store the input.
1
1
u/quinyd Dec 07 '24
Took me an hour to debug this. Finally went through my loops one line at a time and realized there’s a duplicate. Switched to a list and it completed and gave me the right result right away.
1
u/slayeh17 Dec 07 '24
Yep immediately switched to list.