r/programming • • Dec 01 '15

Daily programming puzzles at Advent of Code

http://adventofcode.com/
320 Upvotes

179 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Dec 01 '15

Huh, nice one. Only problem is you don't know the second problem until you've solved the first. There are two types of people: Those who'll just go "fuck it" and pile more code on top for a new use case (me), and people who'll improve old code (you).

2

u/bored_oh Dec 01 '15

Ya I added that printed object and removed the break I had in the for loop that stops it when you first hit the basement so it would work for both cases, just bc hey why haha