GitXplorerGitXplorer
n

adventofcode2020

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
2cb5d1c8e2c7fbd9b5d63952d3b24087d18c5d86

Remove warning

committed 4 years ago
Unverified
09d954694a0c2709f6bdb75337287df0aea4f1fe

Remove debug printouts

committed 4 years ago
Unverified
94966be4b68c79f55bcb5b03ab013ce49e228f63

Solution to day 20, which means all are solved!

committed 4 years ago
Unverified
0660f764bcf7a69e15ea75a509d1f1d9a54c396f

Remove warning

committed 4 years ago
Unverified
b1b8dfa12c53ccf24981c8347814a917b384da73

Remove warnings

committed 4 years ago
Unverified
ef2efc6491502b0e9a437a7df1d3ae69bf1c7fdd

Solution to day 21

committed 4 years ago

README

The README file for this repository.

adventofcode2020

These are my, Niklas Hallqvist solutions to Advent of code 2020. They are written in Rust.

My reason for doing these are, besides the fact that I like puzzle solving, I want to improve my skills in Rust.

You need Rust, rustup is the suggested way to install Rust, that is about it. You may need to add some SSL libraries, depending on operating system, but the installation process will tell you, if so.

Run all the days with:

cargo run input/

Where "input/" is a prefix for the days' inputs, named 01, 02, etc. The tests (the examples given in the days' descriptions) can be run with:

cargo test

When I solved a puzzle in a not so idiomatic or nice way, and later went back to refine the code, I have chosen to retain the naive solution as dead code with method names suffixed with "_naive".

My results were:
      --------Part 1--------   --------Part 2--------
Day       Time   Rank  Score       Time   Rank  Score
 25   01:05:27   3339      0       >24h   9458      0
 24   00:41:54   2425      0   01:23:05   2325      0
 23   17:24:35  12076      0       >24h  10944      0
 22   00:27:05   3103      0   01:23:31   2410      0
 21       >24h  14718      0       >24h  14509      0
 20   02:03:39   2619      0       >24h  11991      0
 19   01:31:01   2625      0   03:41:52   2814      0
 18   00:58:30   3141      0   01:16:24   2489      0
 17   01:26:59   3617      0   01:39:19   3405      0
 16   03:01:59   9269      0   19:29:29  19024      0
 15   00:56:28   5490      0   01:05:24   4357      0
 14   00:28:39   2649      0   01:31:20   3793      0
 13   00:44:13   6478      0   02:18:52   3633      0
 12   01:02:03   6399      0   01:17:58   4862      0
 11   01:33:24   6993      0   01:56:05   5598      0
 10   00:32:43   7576      0   01:24:04   4486      0
  9   00:34:48   7399      0   01:12:31   8310      0
  8   00:28:09   6728      0   01:15:44   7449      0
  7   01:18:07   6640      0   01:38:11   5461      0
  6   00:18:24   6310      0   00:44:57   7242      0
  5   00:18:31   3302      0   00:33:14   4303      0
  4   01:26:50  11141      0   02:35:22  10274      0
  3   00:26:40   5913      0   00:51:32   7172      0
  2   00:27:55   5471      0   00:44:20   5928      0
  1   00:13:29   2444      0   00:17:24   2444      0