Skip to content

goggle/AdventOfCode2019.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI Code coverage

AdventOfCode2019.jl

This Julia package contains my solutions for Advent of Code 2019.

Overview

Day Problem Time Allocated memory Intcode Challenge Source
1 18.415 μs 10.98 KiB
2 1.363 ms 10.80 KiB
2 445.030 μs 209.16 KiB
4 24.145 μs 576 bytes
5 81.015 μs 57.17 KiB
6 173.107 ms 193.03 MiB
7 10.347 ms 9.21 MiB
8 1.626 ms 2.97 MiB
9 23.784 ms 72.92 KiB
10 253.410 ms 62.58 MiB
11 61.687 ms 1.73 MiB
12 109.007 ms 187.87 MiB
13 76.086 ms 712.30 KiB
14 2.650 ms 964.63 KiB
15 11.352 ms 318.86 KiB
16 302.481 ms 52.11 MiB
17 31.891 ms 4.22 MiB
18 1.228 s 678.39 MiB
19 2.356 s 185.80 MiB
20 1.081 s 436.88 MiB
21 35.018 ms 280.50 KiB
22 136.020 μs 96.19 KiB
23 14.125 ms 2.17 MiB
24 67.635 ms 10.39 MiB
25 291.869 ms 2.58 MiB

The benchmarks have been measured on this machine:

Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, ivybridge)

Installation and Usage

Make sure you have Julia 1.3 or newer installed on your system.

Installation

Start Julia and enter the package REPL by typing ]. Create a new environment:

(v1.3) pkg> activate aoc

Install AdventOfCode2019.jl:

(aoc) pkg> add https://github.com/goggle/AdventOfCode2019.jl

Go back to the Julia REPL by pushing the backspace button.

Usage

First, activate the package:

julia> using AdventOfCode2019

Each puzzle can now be run with dayXY():

julia> day09()
2-element Array{Int64,1}:
 3601950151
      64236

This will use my personal input. If you want to use another input, provide it to the dayXY method as a string. You can also use the readInput method to read your input from a text file:

julia> input = readInput("/path/to/input.txt")

About

My solution for "Advent of Code 2019"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages