Advent of Code 2016 – Day 3

Previous:

Advent of Code – Day 2

Advent Of Code 2016 – Day 1

Day 3

Start: 12/5/2016

Finish 12/5/2016

Language: Clojure

SPOILER ALERT: If you have any inkling, any whatsoever, to work on the Advent of Code…. DO NOT READ THIS BLOG POST.  DO NOT LOOK AT MY GITHUB PROJECT.  It is no fun if you’re not solving it yourself, and you’ll feel so much better about yourself if you can figure it out without looking up an answer.  This blog post is not to give away the answer, but instead, is there for people to learn from.

As always, the following code is in my GitHub: https://github.com/pviafore/AdventOfCode2016

The Challenge

So this one wasn’t too bad.  Reminded me of a Project Euler problem.  Find the number of triplets that could be a valid triangle (the sum of two sides are always greater than the other)

Continue reading