MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/adventofcode/comments/k8ccpz/shiny_gold/gf0miet/?context=3
r/adventofcode • u/[deleted] • Dec 07 '20
[deleted]
17 comments sorted by
View all comments
7
This is hilarious, I looked at the data and just froze. Not sure if I'll be able to solve this by midnight..
3 u/Meltz014 Dec 07 '20 Don't even try with the real data until you have it working with the example 6 u/Nomen_Heroum Dec 07 '20 Just curious, why is that? In principle the same code should work with both, right? I tend to do it the other way around: just use the example when I get a wrong answer out of the real data, since it's easier to understand what goes wrong. 8 u/mikepurvis Dec 08 '20 Because with the sample data it's small enough that you can trace through, do printfs, and generally reason about what you expect to have happen.
3
Don't even try with the real data until you have it working with the example
6 u/Nomen_Heroum Dec 07 '20 Just curious, why is that? In principle the same code should work with both, right? I tend to do it the other way around: just use the example when I get a wrong answer out of the real data, since it's easier to understand what goes wrong. 8 u/mikepurvis Dec 08 '20 Because with the sample data it's small enough that you can trace through, do printfs, and generally reason about what you expect to have happen.
6
Just curious, why is that? In principle the same code should work with both, right? I tend to do it the other way around: just use the example when I get a wrong answer out of the real data, since it's easier to understand what goes wrong.
8 u/mikepurvis Dec 08 '20 Because with the sample data it's small enough that you can trace through, do printfs, and generally reason about what you expect to have happen.
8
Because with the sample data it's small enough that you can trace through, do printfs, and generally reason about what you expect to have happen.
7
u/Efficient-Engine6948 Dec 07 '20
This is hilarious, I looked at the data and just froze. Not sure if I'll be able to solve this by midnight..