This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
OlderNewer