Skip to content

Instantly share code, notes, and snippets.

View jstewart's full-sized avatar

Jason Stewart jstewart

View GitHub Profile
defmodule AdventOfCode.Day05 do
@moduledoc """
Intuition:
Part 1: Split each line in half
convert each char of split line into set, find the intersection
calculate the priority of the intersection and sum
Part 2: Chunk input into groups of 3 lines
convert each char of each chunk into set, find the intersection