Commit e63d6cdb authored by Nikolay Petrachkov's avatar Nikolay Petrachkov

Add Advent_of_code_2018#day_01 solutions in Elixir.

parent a7349cf0
# Used by "mix format"
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
]
# The directory Mix will write compiled artifacts to.
/_build/
# If you run "mix test --cover", coverage assets end up here.
/cover/
# The directory Mix downloads your dependencies sources to.
/deps/
# Where 3rd-party dependencies like ExDoc output generated docs.
/doc/
# Ignore .fetch files in case you like to edit your project deps locally.
/.fetch
# If the VM crashes, it generates a dump, let's ignore it too.
erl_crash.dump
# Also ignore archive artifacts (built via "mix archive.build").
*.ez
# Ignore package tarball (built via "mix hex.build").
frequency-*.tar
# Frequency
**TODO: Add description**
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `frequency` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:frequency, "~> 0.1.0"}
]
end
```
Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/frequency](https://hexdocs.pm/frequency).
# This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the parent project. For this reason,
# if you want to provide default values for your application for
# 3rd-party users, it should be done in your "mix.exs" file.
# You can configure your application as:
#
# config :frequency, key: :value
#
# and access this configuration in your application as:
#
# Application.get_env(:frequency, :key)
#
# You can also configure a 3rd-party app:
#
# config :logger, level: :info
#
# It is also possible to import configuration files, relative to this
# directory. For example, you can emulate configuration per environment
# by uncommenting the line below and defining dev.exs, test.exs and such.
# Configuration from the imported file will override the ones defined
# here (which is why it is important to import them last).
#
# import_config "#{Mix.env()}.exs"
-4
+7
+3
+1
-9
-14
+18
-7
-5
-18
+11
-8
+17
-16
-19
+14
+11
-8
+14
+22
+13
+14
-18
+8
-16
+10
-12
+9
-19
-12
-6
+10
+2
-14
+18
+17
+11
-5
+6
+9
+16
-3
+12
+5
+15
+7
+2
-5
-13
+7
+19
+10
-2
+3
-5
-7
-11
+14
+13
+3
+11
+15
-19
-1
-5
+15
+14
-16
+8
+9
-11
-7
+15
+4
+7
+11
-2
+17
-8
-14
+3
-4
+18
+1
+6
-5
+17
+13
-14
-15
-9
+16
+14
+12
-14
-14
+4
-19
+11
+5
+7
+1
+13
-7
+19
+12
+10
+13
-3
+6
-17
+13
-8
+16
+4
-15
+14
-1
+15
-19
+15
-19
+17
-6
+11
-10
+9
+17
+6
+15
-18
+2
-8
+11
-6
-7
+9
+16
-13
-18
-1
+5
-16
+9
-6
+11
-16
+3
-9
+18
+5
+7
+15
+12
+19
-17
-4
-15
-13
+5
-11
+25
+14
+5
+5
+4
-2
-4
-14
+7
+16
+6
+11
-8
+13
+8
+3
-12
+8
+7
-5
+14
+5
+8
-3
-14
-14
-7
-18
-12
+18
+4
-14
-17
-17
+12
-9
+3
-18
+27
+26
-9
-7
+12
+9
+6
+7
+1
-13
+4
-8
-3
-12
+21
+13
+6
+7
+9
+18
-17
+4
+10
-11
-17
-16
+18
+9
-2
+3
-13
-9
+3
-10
-15
+11
+24
+2
+16
+11
+18
+14
-5
-3
+18
+4
+4
+5
-2
-10
+8
+19
+4
+14
+8
+1
-14
-7
+15
-4
-5
+20
+15
+2
-14
-12
-16
+4
-9
+18
+16
+7
+7
+10
+17
-18
+3
+10
-11
-21
-9
-2
+12
-17
+13
+19
-18
-4
-19
+10
-11
-18
-4
+6
+1
+2
-4
-28
-28
-19
+13
+18
-15
-6
+5
+9
-26
-6
+19
-6
+1
-11
-11
+25
-26
+19
+10
+2
+9
-22
-66
-8
+1
-14
-2
-5
+19
-55
+6
-19
-4
-13
+21
-13
-3
-10
-7
+15
-5
-4
-10
+5
-11
-3
+16
+6
+10
+3
-1
-5
-21
-6
+9
-4
-6
-17
-10
+14
-11
+17
+16
-19
+6
+1
-2
+8
-15
+17
-14
-16
+7
-5
-24
-7
-20
+5
-4
+11
-1
+12
-9
-11
-9
-9
-11
-3
-15
-21
-12
+21
+3
+12
+2
+2
+21
-9
+20
+4
+11
-1
+4
-20
+4
+19
+12
+4
-15
+14
+11
+21
-29
-53
+10
-11
+8
-10
-11
+12
-17
-25
-35
+1
-2
+14
+36
+70
+14
+50
+3
+6
+23
-20
-6
-66
-39
-14
+191
-17
+24
+155
-6
+61
+59623
-4
+7
+19
+5
-1
-8
-8
-15
+16
+8
-7
+19
-3
+14
+14
+6
+17
-15
+3
+11
+12
-5
+19
+2
+1
+16
+13
+6
+1
+18
+16
-4
+11
-1
+19
-7
-19
-10
+19
+7
+4
-17
-4
-4
+9
-8
-17
-9
-14
+16
+4
-19
+11
+1
+2
-19
+7
-8
-7
-18
-6
+4
-5
-15
+2
+7
-18
-8
+14
-20
+1
+17
-2
+3
+17
-1
+7
+10
+10
-1
+19
+3
-16
-10
+1
+10
+6
+20
-17
+19
+14
-18
-11
+22
-3
-16
+15
+12
+14
-12
-1
+22
+10
-7
-8
+2
-1
-6
-7
+19
+7
+12
-14
+18
+7
-17
-9
+10
+14
-1
-17
+8
+4
+2
+16
+3
+16
+4
-2
+18
-19
-15
-1
-10
-5
+8
-4
-13
+18
+15
-5
+10
-6
+13
-11
+12
+2
+4
-2
-13
-7
-11
-13
-5
+4
+10
+12
-15
-16
-10
-9
-27
-4
-9
-21
-13
-4
-1
-10
-10
+14
+12
-29
-16
-12
-1
-12
+18
-20
-11
-5
+12
-2
-6
+18
-2
-1
+6
-18
-12
+20
-4
+6
-14
+6
-17
-6
+8
-14
-18
-4
-8
+2
+7
+20
-10
-15
+18
-12
+13
-18
+9
+11
-19
+9
+3
+10
-17
-16
-4
-11
-5
-9
-12
+4
-13
+14
+13
-17
-21
+7
+19
+10
-6
+9
+13
-5
-13