Unable to load image

Day 18 AoC: A nice break :marseybeanrelieved:

This one was very easy compared to the last two days

10
Jump in the discussion.

No email address required.

Cleaned up per usual. For the actual live solve I had unrolled loops because I can type faster than I can think. Stuff like this:

if (c[0]+1,c[1],c[2]) in cubes: sides -= 1
if (c[0]-1,c[1],c[2]) in cubes: sides -= 1
if (c[0],c[1]+1,c[2]) in cubes: sides -= 1
if (c[0],c[1]-1,c[2]) in cubes: sides -= 1
if (c[0],c[1],c[2]+1) in cubes: sides -= 1
if (c[0],c[1],c[2]-1) in cubes: sides -= 1

![](/images/16713962212272782.webp)

Jump in the discussion.

No email address required.

Link copied to clipboard
Action successful!
Error, please refresh the page and try again.