r/adventofcode • u/daggerdragon • Dec 06 '15
SOLUTION MEGATHREAD --- Day 6 Solutions ---
--- Day 6: Probably a Fire Hazard ---
Post your solution as a comment. Structure your post like the Day Five thread.
22
Upvotes
View all comments
Show parent comment
1
u/Scroph Dec 06 '15
I ran into the same problem, ended up allocating on the heap. How did you figure it out eventually ?
I grew suspicious after I changed the type of the grid from
booltointin the second part of the challenge to adapt to the requirement changes. A google search with the subject of "allocate 1000 by 1000 int array on the stack" ironically led me to a stackoverflow reply. But this whole process took me longer than I care to admit.