aoc2022-rust

所属分类:数据结构
开发工具:Rust
文件大小:0KB
下载次数:0
上传日期:2023-07-04 13:35:39
上 传 者sh-1993
说明:  我试图用Rust编程语言解决AoC2022。
(My attempt to solve the AoC2022 with the Rust programming language.)

文件列表:
Cargo.lock (151, 2023-07-04)
Cargo.toml (176, 2023-07-04)
data/ (0, 2023-07-04)
data/examples/ (0, 2023-07-04)
data/examples/example01.txt (55, 2023-07-04)
data/examples/example02.txt (12, 2023-07-04)
data/examples/example03.txt (150, 2023-07-04)
data/examples/example04.txt (48, 2023-07-04)
data/examples/example05.txt (125, 2023-07-04)
data/examples/example06.txt (31, 2023-07-04)
data/inputs/ (0, 2023-07-04)
data/inputs/input01.txt (10488, 2023-07-04)
data/inputs/input02.txt (10000, 2023-07-04)
data/inputs/input03.txt (9914, 2023-07-04)
data/inputs/input04.txt (11405, 2023-07-04)
data/inputs/input05.txt (9950, 2023-07-04)
data/inputs/input06.txt (4096, 2023-07-04)
src/ (0, 2023-07-04)
src/helpers.rs (2463, 2023-07-04)
src/main.rs (698, 2023-07-04)
src/solutions.rs (540, 2023-07-04)
src/solutions/ (0, 2023-07-04)
src/solutions/day01.rs (2864, 2023-07-04)
src/solutions/day02.rs (6172, 2023-07-04)
src/solutions/day03.rs (4144, 2023-07-04)
src/solutions/day04.rs (3512, 2023-07-04)
src/solutions/day05.rs (5189, 2023-07-04)
src/solutions/day06.rs (2508, 2023-07-04)

# Advent of Code 2022 in Rust, by sourproton My attempt to solve the [AoC2022](https://adventofcode.com/2022/) with the [Rust programming language](https://www.rust-lang.org/). ## Usage ### Dependencies - [rustup](https://rustup.rs/) ### Installation - clone this repository - `cd` to it - test it with `cargo test`. It should perform all tests and display `test result: ok` with `0 failed` - compile with `cargo build --release` ### Usage - Download **your** inputs for each puzzle and replace those in the `data/inputs/` folder. Respect the naming convention with 2 digits for the days: `input01.txt`, `input02.txt`, `inputXX.txt`, ... - To run all solutions, run `cargo run --release` - To run the solutions to days `X`, `Y` and `Z`, run `cargo run --release -- X Y Z` ## Why The Advent of Code is a great challenge to learn and apply programming skills. My goal is to learn new algorithms and develop code organization and project management. Rust is a modern, general-purpose programming language that features *memory safety*. I'm particularly interested in this feature and that's the reason I'm learning to code in Rust. ## Progress - [X] 1 - [X] 2 - [X] 3 - [X] 4 - [X] 5 - [X] 6 - [ ] 7 - [ ] 8 - [ ] 9 - [ ] 10 - [ ] 11 - [ ] 12 - [ ] 13 - [ ] 14 - [ ] 15 - [ ] 16 - [ ] 17 - [ ] 18 - [ ] 19 - [ ] 20 - [ ] 21 - [ ] 22 - [ ] 23 - [ ] 24 - [ ] 25

近期下载者

相关文件


收藏者