{"id":20795408,"url":"https://github.com/ooloth/advent-of-code-2015","last_synced_at":"2026-05-24T11:37:01.419Z","repository":{"id":241885932,"uuid":"808121550","full_name":"ooloth/advent-of-code-2015","owner":"ooloth","description":"Solutions for Advent of Code 2015 in Rust. 🧩🧝🎄🎅","archived":false,"fork":false,"pushed_at":"2024-06-14T00:38:40.000Z","size":193,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T11:23:01.125Z","etag":null,"topics":["advent-of-code","advent-of-code-2015","advent-of-code-2015-rust","rust"],"latest_commit_sha":null,"homepage":"https://adventofcode.com/2015","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/ooloth.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":"2024-05-30T12:30:59.000Z","updated_at":"2024-06-14T00:38:43.000Z","dependencies_parsed_at":"2024-05-30T14:26:03.037Z","dependency_job_id":"cec07a79-c6d4-4b79-8fb0-85bf4f49a099","html_url":"https://github.com/ooloth/advent-of-code-2015","commit_stats":null,"previous_names":["ooloth/advent-of-code-2015"],"tags_count":0,"template":false,"template_full_name":"fspoettel/advent-of-code-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooloth%2Fadvent-of-code-2015","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooloth%2Fadvent-of-code-2015/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooloth%2Fadvent-of-code-2015/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooloth%2Fadvent-of-code-2015/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ooloth","download_url":"https://codeload.github.com/ooloth/advent-of-code-2015/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243139317,"owners_count":20242535,"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":["advent-of-code","advent-of-code-2015","advent-of-code-2015-rust","rust"],"created_at":"2024-11-17T16:21:32.921Z","updated_at":"2025-12-25T11:29:43.060Z","avatar_url":"https://github.com/ooloth.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"./.assets/christmas_ferris.png\" width=\"164\"\u003e\n\n# 🎄 Advent of Code 2015\n\nSolutions for [Advent of Code](https://adventofcode.com/2015) in [Rust](https://www.rust-lang.org/).\n\n\u003c!--- advent_readme_stars table ---\u003e\n## 2015 Results\n\n| Day | Part 1 | Part 2 |\n| :---: | :---: | :---: |\n| [Day 1](https://adventofcode.com/2015/day/1) | ⭐ | ⭐ |\n| [Day 2](https://adventofcode.com/2015/day/2) | ⭐ | ⭐ |\n| [Day 3](https://adventofcode.com/2015/day/3) | ⭐ | ⭐ |\n| [Day 4](https://adventofcode.com/2015/day/4) | ⭐ | ⭐ |\n| [Day 5](https://adventofcode.com/2015/day/5) | ⭐ | ⭐ |\n| [Day 6](https://adventofcode.com/2015/day/6) | ⭐ | ⭐ |\n| [Day 7](https://adventofcode.com/2015/day/7) | ⭐ | ⭐ |\n\u003c!--- advent_readme_stars table ---\u003e\n\n\u003c!--- benchmarking table ---\u003e\n\n---\n\n## Usage\n\n### Scaffolding files and downloading puzzle input\n\n```sh\ncargo scaffold 1 --download   # Create scaffolding for day 1 and download puzzle input\ncargo scaffold 1              # Create scaffolding for day 1\ncargo download 1              # Download puzzle input for day 1\ncargo read 1                  # Read puzzle description for day 1\n```\n\n### Testing\n\n```sh\ncargo test\ncargo test --bin 01\ncargo test --bin 01 part_one\n```\n\n### Debugging\n\n1. Install the `rust-analyzer` and `CodeLLDB` extensions\n2. Set breakpoints in your code\n3. Click _Debug_ next to the unit test or the _main_ function\n4. The debugger will halt your program at the specific line and allow you to inspect the local stack\n\n### Running and submitting\n\n```sh\ncargo solve 1              # Run day 1 solution against real puzzle inputs\ncargo solve 1 2            # Run day 1, part 2 solution against real puzzle inputs\ncargo solve 1 2 --release  # Run day 1, part 2 solution against real puzzle inputs with an optimized build\ncargo all                  # Run all solutions sequentially\ncargo all --release        # Run all solutions sequentially with optimized build\ncargo solve 1 --submit 2   # Submit day 1, part 2 solution\n```\n\n### Benchmarking\n\n```sh\ncargo time 1              # Run day 1 10-10K times (depending on execution time) and print the average runtime\ncargo time --all          # Print the average runtime for all days\ncargo solve 1 --dhat      # Analyze day 1 heap allocations with DHAT (https://valgrind.org/docs/manual/dh-manual.html)\ncargo time 1 --store      # Add day 1 timings to the readme\ncargo time --all --store  # Add all timings to the readme\n```\n\nThe `--dhat` command will output some basic stats to the command-line and generate a `dhat-heap.json` report in the repo root directory. You can pass the report a tool like [dh-view](https://nnethercote.github.io/dh_view/dh_view.html) to view a detailed breakdown of heap allocations.\n\n### Linting and formatting\n\n```sh\ncargo fmt\ncargo clippy\n```\n\n## Session cookie for AOC CLI\n\n1. Copy the `session` 🍪 from the [AOC website](https://adventofcode.com) (you'll find it under _Cookies_ in the _Application_ or _Storage_ tab)\n2. Create a `$HOME/.adventofcode.session` file and paste the 🍪 there\n3. Create an `AOC_SESSION` repo secret and paste the 🍪 there as well (Settings -\u003e Secrets -\u003e New repository secret)\n4. When the 🍪 expires, repeat steps 1-3, replacing the old value with the new one\n\n## Common pitfalls\n\n- **Whitespace in input:** Make sure the input file has no leading or trailing whitespace, including no newline at the end of the file.\n- **Integer overflows:** This template uses 32-bit integers by default because it is generally faster - for example when packed in large arrays or structs - than using 64-bit integers everywhere. For some problems, solutions for real input might exceed 32-bit integer space. While this is checked and panics in `debug` mode, integers [wrap](https://doc.rust-lang.org/book/ch03-02-data-types.html#integer-overflow) in `release` mode, leading to wrong output when running your solution.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fooloth%2Fadvent-of-code-2015","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fooloth%2Fadvent-of-code-2015","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fooloth%2Fadvent-of-code-2015/lists"}