Skip to content

Commit 6841f20

Browse files
committed
Add metadata to 2022/1-7
1 parent a9a9de3 commit 6841f20

File tree

7 files changed

+14
-6
lines changed

7 files changed

+14
-6
lines changed

lib/2022/day_01.ex

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ defmodule AdventOfCode.Y2022.Day01 do
22
@moduledoc """
33
--- Day 1: Calorie Counting ---
44
Problem Link: https://adventofcode.com/2022/day/1
5+
Difficulty: xs
6+
Tags: sequence
57
"""
68
alias AdventOfCode.Helpers.{InputReader, Transformers}
79

@@ -25,11 +27,5 @@ defmodule AdventOfCode.Y2022.Day01 do
2527
|> Enum.map(&String.to_integer/1)
2628
|> Enum.sum()
2729
end)
28-
29-
# |> Enum.reduce({[], 0}, fn
30-
# "", {calories, total} -> {[total | calories], 0}
31-
# calorie, {calories, total} -> {calories, total + String.to_integer(calorie)}
32-
# end)
33-
# |> then(fn {calories, last_calorie} -> [last_calorie | calories] end)
3430
end
3531
end

lib/2022/day_02.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ defmodule AdventOfCode.Y2022.Day02 do
22
@moduledoc """
33
--- Day 2: Rock Paper Scissors ---
44
Problem Link: https://adventofcode.com/2022/day/2
5+
Difficulty: xs
6+
Tags: table-lookup
57
"""
68
alias AdventOfCode.Helpers.{InputReader, Transformers}
79

lib/2022/day_03.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ defmodule AdventOfCode.Y2022.Day03 do
22
@moduledoc """
33
--- Day 3: Rucksack Reorganization ---
44
Problem Link: https://adventofcode.com/2022/day/3
5+
Difficulty: xs
6+
Tags: set
57
"""
68
alias AdventOfCode.Helpers.{InputReader, Transformers}
79

lib/2022/day_04.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ defmodule AdventOfCode.Y2022.Day04 do
22
@moduledoc """
33
--- Day 4: Camp Cleanup ---
44
Problem Link: https://adventofcode.com/2022/day/4
5+
Difficulty: xs
6+
Tags: range set
57
"""
68
alias AdventOfCode.Helpers.{InputReader, Transformers}
79

lib/2022/day_05.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ defmodule AdventOfCode.Y2022.Day05 do
22
@moduledoc """
33
--- Day 5: Supply Stacks ---
44
Problem Link: https://adventofcode.com/2022/day/5
5+
Difficulty: s
6+
Tags: parse-heavy stack linked-list
57
"""
68
alias AdventOfCode.Helpers.{InputReader, Transformers}
79

lib/2022/day_06.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ defmodule AdventOfCode.Y2022.Day06 do
22
@moduledoc """
33
--- Day 6: Tuning Trouble ---
44
Problem Link: https://adventofcode.com/2022/day/6
5+
Difficulty: xs
6+
Tags: binary-manipulation set
57
"""
68
alias AdventOfCode.Helpers.InputReader
79

lib/2022/day_07.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ defmodule AdventOfCode.Y2022.Day07 do
22
@moduledoc """
33
--- Day 7: No Space Left On Device ---
44
Problem Link: https://adventofcode.com/2022/day/7
5+
Difficulty: xs
6+
Tags: command-parsing linked-list
57
"""
68
alias AdventOfCode.Helpers.{InputReader, Transformers}
79

0 commit comments

Comments
 (0)