https://github.com/alxdrcirilo/advent-of-code

Advent of Code 🎄

https://github.com/alxdrcirilo/advent-of-code

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • â—‹
    CITATION.cff file
  • ✓
    codemeta.json file
    Found codemeta.json file
  • â—‹
    .zenodo.json file
  • â—‹
    DOI references
  • â—‹
    Academic publication links
  • â—‹
    Academic email domains
  • â—‹
    Institutional organization owner
  • â—‹
    JOSS paper metadata
  • â—‹
    Scientific vocabulary similarity
    Low similarity (3.0%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

Advent of Code 🎄

Basic Info
  • Host: GitHub
  • Owner: alxdrcirilo
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage: https://adventofcode.com
  • Size: 92.8 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 2 years ago · Last pushed over 1 year ago
Metadata Files
Readme License

README.md

Advent of Code 🎄

Advent of Code is an Advent calendar of small programming puzzles for a variety of skill levels that can be solved in any programming language you like. People use them as interview prep, company training, university coursework, practice problems, a speed contest, or to challenge each other — Advent of Code - About

Challenges

2023

| Day | Part | Year | Language | LOCs | Runtime (ms) | File Path | |:-------:|:--------:|:--------:|:------------:|:--------:|:------------------:|:----------------------------------------------:| | 01 | 1 | 2023 | Python | 14 | 91.1 ms ± 0.7 ms | 2023/day01/day1_1.py | | 01 | 2 | 2023 | Python | 40 | 109.4 ms ± 11.7 ms | 2023/day01/day1_2.py | | 02 | 1 | 2023 | Python | 36 | 94.5 ms ± 1.9 ms | 2023/day02/day2_1.py | | 02 | 2 | 2023 | Python | 32 | 96.4 ms ± 1.3 ms | 2023/day02/day2_2.py | | 03 | 1 | 2023 | Python | 22 | 100.4 ms ± 1.8 ms | 2023/day03/day3_1.py | | 03 | 2 | 2023 | Python | 67 | 146.2 ms ± 1.4 ms | 2023/day03/day3_2.py | | 04 | 1 | 2023 | Python | 12 | 96.0 ms ± 1.4 ms | 2023/day04/day4_1.py | | 04 | 2 | 2023 | Python | 23 | 854.0 ms ± 7.6 ms | 2023/day04/day4_2.py | | 05 | 1 | 2023 | Python | 29 | 93.2 ms ± 0.8 ms | 2023/day05/day5_1.py | | 05 | 2 | 2023 | Python | 41 | 94.1 ms ± 1.2 ms | 2023/day05/day5_2.py | | 06 | 1 | 2023 | Python | 23 | 92.6 ms ± 0.9 ms | 2023/day06/day6_1.py | | 06 | 2 | 2023 | Python | 23 | 788.4 ms ± 21.4 ms | 2023/day06/day6_2.py | | 07 | 1 | 2023 | Python | 66 | 177.3 ms ± 1.5 ms | 2023/day07/day7_1.py | | 07 | 2 | 2023 | Python | 77 | 167.4 ms ± 1.3 ms | 2023/day07/day7_2.py | | 08 | 1 | 2023 | Python | 27 | 96.8 ms ± 0.9 ms | 2023/day08/day8_1.py | | 08 | 2 | 2023 | Python | 42 | 518.7 ms ± 10.4 ms | 2023/day08/day8_2.py | | 09 | 1 | 2023 | Python | 10 | 92.7 ms ± 0.8 ms | 2023/day09/day9_1.py | | 09 | 2 | 2023 | Python | 10 | 92.7 ms ± 1.1 ms | 2023/day09/day9_2.py | | 10 | 1 | 2023 | Python | 56 | 101.4 ms ± 0.6 ms | 2023/day10/day10_1.py | | 11 | 1 | 2023 | Python | 33 | 73.8 ms ± 1.7 ms | 2023/day11/day11_1.py | | 11 | 2 | 2023 | Python | 39 | 353.5 ms ± 3.1 ms | 2023/day11/day11_2.py |

2024

[!NOTE]

  • For Rust 🦀 programs, parts 1 and 2 are included in the same file, thus the runtime refers to the entire day including both parts.
  • Skipped days are not included in the table below. Partially completed days are included in the table and marked with an asterisk *.

| Day | Part | Year | Language | LOCs | Runtime (ms) | File Path | |:-------:|:--------:|:--------:|:------------:|:--------:|:------------------:|:--------------------------------------:| | 01 | 1 | 2024 | Rust | 43 | 3.1 ms ± 0.2 ms | 2024/src/day01.rs | | 01 | 2 | 2024 | Rust | 43 | 3.1 ms ± 0.2 ms | 2024/src/day01.rs | | 02 | 1 | 2024 | Rust | 64 | 3.6 ms ± 0.1 ms | 2024/src/day02.rs | | 02 | 2 | 2024 | Rust | 64 | 3.6 ms ± 0.1 ms | 2024/src/day02.rs | | 03 | 1 | 2024 | Rust | 49 | 2.8 ms ± 0.1 ms | 2024/src/day03.rs | | 03 | 2 | 2024 | Rust | 49 | 2.8 ms ± 0.1 ms | 2024/src/day03.rs | | 04 | 1 | 2024 | Rust | 100 | 3.5 ms ± 0.1 ms | 2024/src/day04.rs | | 04 | 2 | 2024 | Rust | 100 | 3.5 ms ± 0.1 ms | 2024/src/day04.rs | | 05* | 1 | 2024 | Rust | 35 | 3.8 ms ± 0.2 ms | 2024/src/day05.rs | | 06* | 1 | 2024 | Rust | 128 | 3.1 ms ± 0.2 ms | 2024/src/day05.rs | | 07* | 1 | 2024 | Rust | 109 | 3.979 s ± 0.040 s | 2024/src/day07.rs |

Metrics

The runtime was determined using the hyperfine command in the terminal:

  • Python: hyperfine -r 20 --warmup 10 <...>
  • Rust: hyperfine -r 100 --warmup 20 -N <...> (on binary using cargo build --release)

LOCs (Lines of Code) are counted using the [cloc] command in the terminal (e.g. cloc --by-file --include-lang=Python 2023).

Owner

  • Name: Alexandre Cirilo
  • Login: alxdrcirilo
  • Kind: user
  • Location: The Netherlands

GitHub Events

Total
  • Push event: 11
Last Year
  • Push event: 11

Dependencies

2024/Cargo.lock cargo
  • aho-corasick 1.1.3
  • memchr 2.7.4
  • regex 1.11.1
  • regex-automata 0.4.9
  • regex-syntax 0.8.5
2024/Cargo.toml cargo