{"id":21135540,"url":"https://github.com/mrrobb/advent-of-code-2021","last_synced_at":"2025-03-14T12:44:13.491Z","repository":{"id":98850125,"uuid":"434930971","full_name":"MrRobb/advent-of-code-2021","owner":"MrRobb","description":"Rust solutions of Advent of Code 2021","archived":false,"fork":false,"pushed_at":"2021-12-26T12:18:12.000Z","size":133,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-21T06:43:29.334Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://adventofcode.com/2021/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MrRobb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-04T14:59:35.000Z","updated_at":"2023-07-25T14:52:11.000Z","dependencies_parsed_at":"2023-05-25T20:45:10.048Z","dependency_job_id":null,"html_url":"https://github.com/MrRobb/advent-of-code-2021","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrRobb%2Fadvent-of-code-2021","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrRobb%2Fadvent-of-code-2021/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrRobb%2Fadvent-of-code-2021/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrRobb%2Fadvent-of-code-2021/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MrRobb","download_url":"https://codeload.github.com/MrRobb/advent-of-code-2021/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243581062,"owners_count":20314163,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T06:56:29.431Z","updated_at":"2025-03-14T12:44:13.484Z","avatar_url":"https://github.com/MrRobb.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Advent of Code 2021\n\n[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/MrRobb/advent-of-code-2019/blob/master/LICENSE)\n\n|        | Problem                                            | Solution                                                                         | Execution time        | Finished |\n|--------|----------------------------------------------------|----------------------------------------------------------------------------------|-----------------------|----------|\n| Day 1  | [Problem 1](https://adventofcode.com/2021/day/1)   | [day1.rs](https://github.com/MrRobb/advent-of-code-2021/blob/main/src/day1.rs)   | 26.920 μs + 26.927 μs | ✓        |\n| Day 2  | [Problem 2](https://adventofcode.com/2021/day/2)   | [day2.rs](https://github.com/MrRobb/advent-of-code-2021/blob/main/src/day2.rs)   | 25.295 μs + 29.425 μs | ✓        |\n| Day 3  | [Problem 3](https://adventofcode.com/2021/day/3)   | [day3.rs](https://github.com/MrRobb/advent-of-code-2021/blob/main/src/day3.rs)   | 53.085 μs + 496.60 μs | ✓        |\n| Day 4  | [Problem 4](https://adventofcode.com/2021/day/4)   | [day4.rs](https://github.com/MrRobb/advent-of-code-2021/blob/main/src/day4.rs)   | 418.32 μs + 1.8037 ms | ✓        |\n| Day 5  | [Problem 5](https://adventofcode.com/2021/day/5)   | [day5.rs](https://github.com/MrRobb/advent-of-code-2021/blob/main/src/day5.rs)   | 748.14 μs + 848.71 μs | ✓        |\n| Day 6  | [Problem 6](https://adventofcode.com/2021/day/6)   | [day6.rs](https://github.com/MrRobb/advent-of-code-2021/blob/main/src/day6.rs)   | 2.7375 μs + 2.8628 μs | ✓        |\n| Day 7  | [Problem 7](https://adventofcode.com/2021/day/7)   | [day7.rs](https://github.com/MrRobb/advent-of-code-2021/blob/main/src/day7.rs)   | 23.143 μs + 15.143 μs | ✓        |\n| Day 8  | [Problem 8](https://adventofcode.com/2021/day/8)   | [day8.rs](https://github.com/MrRobb/advent-of-code-2021/blob/main/src/day8.rs)   | 16.999 μs + 56.899 μs | ✓        |\n| Day 9  | [Problem 9](https://adventofcode.com/2021/day/9)   | [day9.rs](https://github.com/MrRobb/advent-of-code-2021/blob/main/src/day9.rs)   | 75.215 μs + 205.23 μs | ✓        |\n| Day 10 | [Problem 10](https://adventofcode.com/2021/day/10) | [day10.rs](https://github.com/MrRobb/advent-of-code-2021/blob/main/src/day10.rs) | 28.089 μs + 28.422 μs | ✓        |\n| Day 11 | [Problem 11](https://adventofcode.com/2021/day/11) | [day11.rs](https://github.com/MrRobb/advent-of-code-2021/blob/main/src/day11.rs) | 59.261 μs + 200.58 μs | ✓        |\n| Day 12 | [Problem 12](https://adventofcode.com/2021/day/12) | [day12.rs](https://github.com/MrRobb/advent-of-code-2021/blob/main/src/day12.rs) | 279.21 μs + 5.0878 ms | ✓        |\n| Day 13 | [Problem 13](https://adventofcode.com/2021/day/13) | [day13.rs](https://github.com/MrRobb/advent-of-code-2021/blob/main/src/day13.rs) | 106.94 μs + 160.80 μs | ✓        |\n| Day 14 | [Problem 14](https://adventofcode.com/2021/day/14) | [day14.rs](https://github.com/MrRobb/advent-of-code-2021/blob/main/src/day14.rs) | 68.580 μs + 272.22 μs | ✓        |\n| Day 15 | [Problem 15](https://adventofcode.com/2021/day/15) | [day15.rs](https://github.com/MrRobb/advent-of-code-2021/blob/main/src/day15.rs) | 1.6114 ms + 22.996 ms | ✓        |\n| Day 16 | [Problem 16](https://adventofcode.com/2021/day/16) | [day16.rs](https://github.com/MrRobb/advent-of-code-2021/blob/main/src/day16.rs) | 28.969 μs + 29.466 μs | ✓        |\n| Day 17 | [Problem 17](https://adventofcode.com/2021/day/17) | [day17.rs](https://github.com/MrRobb/advent-of-code-2021/blob/main/src/day17.rs) | 154.66 ns + 4.3031 ms | ✓        |\n| Day 18 |                                                    |                                                                                  |                       |          |\n| Day 19 |                                                    |                                                                                  |                       |          |\n| Day 20 |                                                    |                                                                                  |                       |          |\n| Day 21 | [Problem 21](https://adventofcode.com/2021/day/21) | [day21.rs](https://github.com/MrRobb/advent-of-code-2021/blob/main/src/day21.rs) | 9.5767 μs + 401.30 ns | ✓        |\n| Day 22 | [Problem 22](https://adventofcode.com/2021/day/22) | [day22.rs](https://github.com/MrRobb/advent-of-code-2021/blob/main/src/day22.rs) | 404.58 ms + 54.421 ms | ✓        |\n| Day 23 |                                                    |                                                                                  |                       |          |\n| Day 24 |                                                    |                                                                                  |                       |          |\n| Day 25 |                                                    |                                                                                  |                       |          |\n\n\u003e The benchmarks are measured (non-scientifically) with [cargo-criterion](https://github.com/bheisler/cargo-criterion) on a Macbook Pro 13' M1.\n\n### Benchmark all\n\n```sh\nBenchmark 1: ./target/release/advent-of-code-2021\n  Time (mean ± σ):      12.6 ms ±   0.4 ms    [User: 45.9 ms, System: 3.0 ms]\n  Range (min … max):    12.1 ms …  14.5 ms    200 runs\n```\n\n## Install Rust\n\nIf you don't have Rust installed ([how dare you](https://media.giphy.com/media/U1aN4HTfJ2SmgB2BBK/giphy.gif)) just run this:\n\n```sh\ncurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh\n```\n\n\u003e If you are not using a Unix-like OS, check the instructions [here](https://www.rust-lang.org/tools/install)\n## Usage\n\n### Clone\n\n```sh\ngit clone https://github.com/MrRobb/advent-of-code-2021.git\ncd advent-of-code-2021\n```\n\n### Build\n\n```sh\ncargo build --release\n```\n\n### Run\n\n#### Run all\n\n```sh\ncargo run --release\n```\n\n#### Run a specific day\n\n```sh\ncargo run --release --bin day1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrrobb%2Fadvent-of-code-2021","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrrobb%2Fadvent-of-code-2021","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrrobb%2Fadvent-of-code-2021/lists"}