Skip to content

Commit

Permalink
Add metadata to 2015/1-13
Browse files Browse the repository at this point in the history
  • Loading branch information
code-shoily committed Dec 4, 2023
1 parent 9f18a9d commit a9a9de3
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 3 deletions.
2 changes: 2 additions & 0 deletions lib/2015/day_01.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ defmodule AdventOfCode.Y2015.Day01 do
@moduledoc """
--- Day 1: Not Quite Lisp ---
Problem Link: https://adventofcode.com/2015/day/1
Difficulty: xs
Tags: sequential
"""
alias AdventOfCode.Helpers.InputReader

Expand Down
2 changes: 2 additions & 0 deletions lib/2015/day_02.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ defmodule AdventOfCode.Y2015.Day02 do
@moduledoc """
--- Day 2: I Was Told There Would Be No Math ---
Problem Link: https://adventofcode.com/2015/day/2
Difficulty: xs
Tags: geometry2D
"""
alias AdventOfCode.Helpers.{InputReader, Transformers}

Expand Down
2 changes: 2 additions & 0 deletions lib/2015/day_03.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ defmodule AdventOfCode.Y2015.Day03 do
@moduledoc """
--- Day 3: Perfectly Spherical Houses in a Vacuum ---
Problem Link: https://adventofcode.com/2015/day/3
Difficulty: xs
Tags: grid-walk set
"""
alias AdventOfCode.Helpers.InputReader

Expand Down
2 changes: 2 additions & 0 deletions lib/2015/day_04.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ defmodule AdventOfCode.Y2015.Day04 do
@moduledoc """
--- Day 4: The Ideal Stocking Stuffer ---
Problem Link: https://adventofcode.com/2015/day/4
Difficulty: s
Tags: md5 annoying
"""
def run_1, do: lowest_number("bgvyzdsv", 1)
def run_2, do: "bgvyzdsv" |> lowest_number_2(1)
Expand Down
2 changes: 2 additions & 0 deletions lib/2015/day_05.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ defmodule AdventOfCode.Y2015.Day05 do
@moduledoc """
--- Day 5: Doesn't He Have Intern-Elves For This? ---
Problem Link: https://adventofcode.com/2015/day/5
Difficulty: xs
Tags: string
"""
alias AdventOfCode.Helpers.{InputReader, Transformers}

Expand Down
3 changes: 2 additions & 1 deletion lib/2015/day_06.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ defmodule AdventOfCode.Y2015.Day06 do
@moduledoc """
--- Day 6: Probably a Fire Hazard ---
Problem Link: https://adventofcode.com/2015/day/6
NOTE: This is slow!
Difficulty: m
Tags: grid vector reduction slow
"""
alias Aja.Vector
alias AdventOfCode.Helpers.{InputReader, Transformers}
Expand Down
2 changes: 2 additions & 0 deletions lib/2015/day_08.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ defmodule AdventOfCode.Y2015.Day08 do
@moduledoc """
--- Day 8: Matchsticks ---
Problem Link: https://adventofcode.com/2015/day/8
Difficulty: m
Tags: string-encoding annoying
"""
alias AdventOfCode.Helpers.{InputReader, Transformers}

Expand Down
4 changes: 3 additions & 1 deletion lib/2015/day_09.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ defmodule AdventOfCode.Y2015.Day09 do
@moduledoc """
--- Day 9: All in a Single Night ---
Problem Link: https://adventofcode.com/2015/day/9
Difficulty: s
Tags: graph weighted-graph routing-algorithm
"""
alias AdventOfCode.Helpers.{InputReader, Transformers}

Expand All @@ -16,7 +18,7 @@ defmodule AdventOfCode.Y2015.Day09 do
def run_1(input), do: input |> travel_all(&Enum.min/1)
def run_2(input), do: input |> travel_all(&Enum.max/1)

def parse(data) do
def parse(data \\ input()) do
data
|> Transformers.lines()
|> Enum.map(fn route ->
Expand Down
2 changes: 2 additions & 0 deletions lib/2015/day_10.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ defmodule AdventOfCode.Y2015.Day10 do
@moduledoc """
--- Day 10: Elves Look, Elves Say ---
Problem Link: https://adventofcode.com/2015/day/10
Difficulty: xs
Tags: string-encoding sequence reduction
"""
alias AdventOfCode.Helpers.InputReader

Expand Down
2 changes: 2 additions & 0 deletions lib/2015/day_11.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ defmodule AdventOfCode.Y2015.Day11 do
@moduledoc """
--- Day 11: Corporate Policy ---
Problem Link: https://adventofcode.com/2015/day/11
Difficulty: xs
Tags: sequence char-sequence validation
"""
alias AdventOfCode.Helpers.InputReader

Expand Down
2 changes: 2 additions & 0 deletions lib/2015/day_12.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ defmodule AdventOfCode.Y2015.Day12 do
@moduledoc """
--- Day 12: JSAbacusFramework.io ---
Problem Link: https://adventofcode.com/2015/day/12
Difficulty: xs
Tags: json parsing
"""
alias AdventOfCode.Helpers.InputReader

Expand Down
4 changes: 3 additions & 1 deletion lib/2015/day_13.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ defmodule AdventOfCode.Y2015.Day13 do
@moduledoc """
--- Day 13: Knights of the Dinner Table ---
Problem Link: https://adventofcode.com/2015/day/13
Difficulty: s
Tags: brute-force permutations slow
"""
alias AdventOfCode.Helpers.{InputReader, Transformers}

Expand All @@ -18,7 +20,7 @@ defmodule AdventOfCode.Y2015.Day13 do
}
end

def parse(data) do
def parse(data \\ input()) do
facts =
data
|> Transformers.lines()
Expand Down

0 comments on commit a9a9de3

Please sign in to comment.