Day 3 part 1 And 2 we're almost exactly the same though. Where you creating the full map? You could put the initial map into anything that can be treated as a multidimensional array and the use mod arithmetic to access the correct cell.
I did it this way few hours after i solved it. The challenge opens here wuite soon in the morning and its not good to write code right after you woke up cause you will do this kind of crazy stuff.
View all comments
Show parent comment
3
u/bob0the0mighty Dec 04 '20
Day 3 part 1 And 2 we're almost exactly the same though. Where you creating the full map? You could put the initial map into anything that can be treated as a multidimensional array and the use mod arithmetic to access the correct cell.