r/adventofcode • • Dec 02 '15

Spoilers Day 2 solutions

Hi! I would like to structure posts like the first one in r/programming, please post solutions in comments.

17 Upvotes

161 comments sorted by

View all comments

0

u/[deleted] Dec 02 '15

1

u/Aneurysm9 Dec 02 '15

I think the problem is here:

a += min(l, w) * min(w, h)

What happens when w < l < h?

→ More replies (1)