Skip to content

Commit

Permalink
Change 2018/1 LE
Browse files Browse the repository at this point in the history
  • Loading branch information
code-shoily committed Jun 29, 2024
1 parent c172f01 commit 43f6a3c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/2018/day_01.ex
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
defmodule AdventOfCode.Y2018.Day01 do
@moduledoc """
--- Day 1: Chronal Calibration ---
Problem Link: https://adventofcode.com/2018/day/1
Difficulty: s
Tags: sequence set
--- Day 1: Chronal Calibration ---
Problem Link: https://adventofcode.com/2018/day/1
Difficulty: s
Tags: sequence set
"""
alias AdventOfCode.Helpers.{InputReader, Transformers}

Expand All @@ -15,7 +15,9 @@ defmodule AdventOfCode.Y2018.Day01 do
{run_1(input), run_2(input)}
end

def run_1(input), do: Enum.reduce(input, 0, &Kernel.+/2)
def run_1(input) do
Enum.reduce(input, 0, &Kernel.+/2)
end

def run_2(input) do
input
Expand Down

0 comments on commit 43f6a3c

Please sign in to comment.