{"id":21135537,"url":"https://github.com/mrrobb/advent-of-code-2022","last_synced_at":"2025-03-14T12:44:12.702Z","repository":{"id":64750198,"uuid":"572945009","full_name":"MrRobb/advent-of-code-2022","owner":"MrRobb","description":"🎄 Advent of Code 2022 - It's the Most Wonderful Time of the Year...","archived":false,"fork":false,"pushed_at":"2022-12-24T17:05:57.000Z","size":182,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-21T06:43:29.161Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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}},"created_at":"2022-12-01T11:19:25.000Z","updated_at":"2023-11-30T15:50:30.000Z","dependencies_parsed_at":"2023-01-30T21:01:08.943Z","dependency_job_id":null,"html_url":"https://github.com/MrRobb/advent-of-code-2022","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-2022","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrRobb%2Fadvent-of-code-2022/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrRobb%2Fadvent-of-code-2022/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrRobb%2Fadvent-of-code-2022/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MrRobb","download_url":"https://codeload.github.com/MrRobb/advent-of-code-2022/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:23.994Z","updated_at":"2025-03-14T12:44:12.674Z","avatar_url":"https://github.com/MrRobb.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎄 Advent of Code 2022\n\n[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/MrRobb/advent-of-code-2022/blob/master/LICENSE)\n\n|        | Problem                                            | Solution                                                                         | Execution time        | Lines of code | Finished |\n|--------|----------------------------------------------------|----------------------------------------------------------------------------------|-----------------------|---------------|----------|\n| Day 1  | [Problem 1](https://adventofcode.com/2022/day/1)   | [day01.rs](https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day01.rs) | 27.138 μs + 30.321 μs | 25            | ✓        |\n| Day 2  | [Problem 2](https://adventofcode.com/2022/day/2)   | [day02.rs](https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day02.rs) | 34.969 μs + 48.740 μs | 87            | ✓        |\n| Day 3  | [Problem 3](https://adventofcode.com/2022/day/3)   | [day03.rs](https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day03.rs) | 19.755 μs + 20.559 μs | 38            | ✓        |\n| Day 4  | [Problem 4](https://adventofcode.com/2022/day/4)   | [day04.rs](https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day04.rs) | 41.928 μs + 44.308 μs | 31            | ✓        |\n| Day 5  | [Problem 5](https://adventofcode.com/2022/day/5)   | [day05.rs](https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day05.rs) | 80.709 μs + 76.145 μs | 86            | ✓        |\n| Day 6  | [Problem 6](https://adventofcode.com/2022/day/6)   | [day06.rs](https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day06.rs) | 1.9594 μs + 7.1957 μs | 19            | ✓        |\n| Day 7  | [Problem 7](https://adventofcode.com/2022/day/7)   | [day07.rs](https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day07.rs) | 243.91 μs + 243.73 μs | 64            | ✓        |\n| Day 8  | [Problem 8](https://adventofcode.com/2022/day/8)   | [day08.rs](https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day08.rs) | 56.995 μs + 294.87 μs | 101           | ✓        |\n| Day 9  | [Problem 9](https://adventofcode.com/2022/day/9)   | [day09.rs](https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day09.rs) | 373.37 μs + 637.31 μs | 55            | ✓        |\n| Day 10 | [Problem 10](https://adventofcode.com/2022/day/10) | [day10.rs](https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day10.rs) | 3.1713 μs + 6.6354 μs | 77            | ✓        |\n| Day 11 | [Problem 11](https://adventofcode.com/2022/day/11) | [day11.rs](https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day11.rs) | 13.747 μs + 8.0738 ms | 97            | ✓        |\n| Day 12 | [Problem 12](https://adventofcode.com/2022/day/12) | [day12.rs](https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day12.rs) | 433.01 μs + 395.58 μs | 69            | ✓        |\n| Day 13 | [Problem 13](https://adventofcode.com/2022/day/13) | [day13.rs](https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day13.rs) | 521.14 μs + 712.65 μs | 87            | ✓        |\n| Day 14 | [Problem 14](https://adventofcode.com/2022/day/14) | [day14.rs](https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day14.rs) | 221.21 µs + 7.4928 ms | 114           | ✓        |\n| Day 15 | [Problem 15](https://adventofcode.com/2022/day/15) | [day15.rs](https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day15.rs) | 12.688 ms + 107.37 ms | 128           | ✓        |\n| Day 16 | [Problem 16](https://adventofcode.com/2022/day/16) | [day16.rs](https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day16.rs) | 56.593 ms + 363.85 ms | 201           | ✓        |\n| Day 17 | [Problem 17](https://adventofcode.com/2022/day/17) | [day17.rs](https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day17.rs) | 966.74 µs + 1.1478 ms | 119           | ✓        |\n| Day 18 | [Problem 18](https://adventofcode.com/2022/day/18) | [day18.rs](https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day18.rs) | 24.405 ms + 69.568 ms | 95            | ✓        |\n| Day 19 | [Problem 19](https://adventofcode.com/2022/day/19) | [day19.rs](https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day19.rs) | 259.98 ms + 457.76 ms | 195           | ✓        |\n| Day 20 | [Problem 20](https://adventofcode.com/2022/day/20) | [day20.rs](https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day20.rs) | 4.3224 ms + 50.078 ms | 45            | ✓        |\n| Day 21 | [Problem 21](https://adventofcode.com/2022/day/21) | [day21.rs](https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day21.rs) | 2.5273 ms + 2.7372 ms | 82            | ✓        |\n| Day 22 | [Problem 22](https://adventofcode.com/2022/day/22) | [day22.rs](https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day22.rs) |                       |               | ✗        |\n| Day 23 | [Problem 23](https://adventofcode.com/2022/day/23) | [day23.rs](https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day23.rs) | 4.0297 ms + 268.24 ms | 117           | ✓        |\n| Day 24 | [Problem 24](https://adventofcode.com/2022/day/24) | [day24.rs](https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day24.rs) | 211.53 ms + 599.94 ms | 181           | ✓        |\n\n\u003e The benchmarks are measured (non-scientifically) with [cargo-criterion](https://github.com/bheisler/cargo-criterion) on a AMD Ryzen 5 3600 Desktop. More in the [benchmarks](#benchmarks) section.\n\u003e The lines of code are measured using [ghloc](https://github.com/MrRobb/ghloc-rs), excluding comments and empty lines.\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-2022.git\ncd advent-of-code-2022\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 day01\n```\n\n## Benchmarks\n\n### Install Criterion\n\nTo run the benchmarks you need to install [cargo-criterion](https://github.com/bheisler/cargo-criterion) first:\n\n```sh\ncargo install cargo-criterion\n```\n\n### Run benchmarks\n\nOnce you have Criterion installed, you can run the benchmarks with:\n\n```sh\ncargo criterion\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrrobb%2Fadvent-of-code-2022","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrrobb%2Fadvent-of-code-2022","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrrobb%2Fadvent-of-code-2022/lists"}