Advent of Code 2023 solutions - #15 on global leaderboard

Overview

My solutions for Advent of Code 2023, written in Rust. The code requires Rust nightly to run.

Sample inputs from each day are provided. To run with actual inputs, set the AOC_SESSION environment variable.

Placement

Total points: 871 on leaderboard

Day Part 1 Rank Score Part 2 Rank Score
17 00:04:32 4 97 00:05:03 1 100
16 00:12:28 144 0 00:32:53 1159 0
15 00:01:31 17 84 00:13:34 255 0
14 00:03:19 33 68 00:09:37 6 95
13 00:25:05 1643 0 01:14:14 3418 0
12 00:06:57 53 48 01:15:59 1397 0
11 00:13:43 975 0 00:21:49 1166 0
10 00:08:09 29 72 00:52:47 456 0
9 00:10:41 1416 0 00:10:58 768 0
8 00:03:23 85 16 00:09:32 75 26
7 00:15:51 468 0 00:18:36 182 0
6 00:04:02 249 0 00:05:19 139 0
5 00:06:22 49 52 00:17:54 18 83
4 00:04:03 363 0 00:08:19 177 0
3 00:10:46 351 0 00:17:25 338 0
2 00:05:23 230 0 00:07:47 234 0
1 00:00:35 2 99 00:06:21 70 31
You might also like...
🎄My Advent of Code 2021 solutions in the Rust programming language

Advent of Code 2021 in Rust My Advent of Code 2021 solutions in the Rust programming language. This repository holds a separate Rust project for each

My solutions for the Advent of Code 2021 in Scala, Python, Haskell and Rust.

Advent of Code 2021 These are my Advent of Code 2021 solutions written in Scala 3, Haskell, Python and Rust. Day Title L1 L2 L3 L4 01 Sonar Sweep Scal

My solutions for Advent of Code 2021, in Rust

Advent of Code 2021 These are my solutions. I have decided to use Rust for now. I'm new to Rust, so it might be some of the worst Rust code you've see

My solutions for the 2021 edition of the Advent of Code, using Rust and SOM (Simple Object Machine)

Advent of Code 2021 These are my solutions for the 2021 edition of the Advent of Code. The solutions are all implemented using both Rust and SOM (Simp

Remmy's Advent of Code solutions

Advent of Code in Rust - remmycat's solutions Benchmarks on MacBook Pro (13-inch, 2019), 2.8 GHz Quad-Core Intel Core i7 (Day 15 and 19, yikes…) Emoji

Solutions to Advent of Code 2021, coded in rust

Advent of Code 2021 (aoc-2021-rust) Solutions to Advent of Code 2021 (https://adventofcode.com/2021), coded as part of my efforts to learn Rust Run co

🎄 My solutions to Advent of Code 2022.

🎄 advent-of-code-2022 Overview This repository contains my solutions to Advent of Code 2022. I decided to take this year as an opportunity to learn R

My Rusty Solutions For Advent of Code

My Rusty Solutions For Advent of Code Name Part 1 Part 2 Language Day 1 Snack Calorie Counting ✅ ✅ Rust Day 2 Rock Paper Scissors ✅ ✅ Rust Day 3 Food

Solutions to Advent of Code 2022 puzzles

Solutions to Advent of Code 2022 puzzles

Comments
  • Feature Refactoring and Additions

    Feature Refactoring and Additions

    Pull Request: Feature Refactoring and Additions

    Changes Made

    1. Added .idea/.gitignore file with default ignored files.

      • Ignored files commonly associated with JetBrains IntelliJ IDEA.
    2. Added personal sample.

      • Sample content added for personal reference.
    3. Refactored Cartesian.rs to use generic types and improve code readability & maintainability.

      • Explicitly specified the type of default to fix a type mismatch.
    4. XL Refactor

      • Additional refactorings for code clarity and consistency.
    5. Refactored printer.rs to use Cell and Cuboid types.

      • Updated variable names for clarity and consistency.
    6. Refactored run.py to use subprocess module for executing the command.

      • Improved subprocess handling in the Python script.
    7. Added watch.bat script to continuously run Rust files in src/bin folder.

      • Enables continuous execution of Rust files for development.
    8. Remove unnecessary whitespace in main.rs file.

      • Code cleanup for improved readability.
    9. Added refactors.

      • Miscellaneous refactoring changes.
    10. Delete .idea directory.

      • Removed unnecessary IntelliJ IDEA files.
    11. Add url crate to Cargo.toml.

      • Dependency added to Cargo.toml.
    12. Merged remote-tracking branch 'origin/feature-branch' into feature-branch.

      • Synced with the remote feature-branch.
    13. Refactored input retrieval and submission handling in lib.rs.

      • Improved input handling in the Rust library.
    14. Refactor multiplication method in cartesian.rs.

      • Removed unnecessary type annotations for conciseness.
    15. Refactor code for reading and writing clipboard with xclip command.

      • Improvements in clipboard interaction.
    16. Refactor code to simplify finding and displaying character colors.

      • Streamlined color-related code.
    17. Let's go back to the basic sample for #3.

      • Reverted changes for issue #3.
    18. Refactor the corners function in cartesian.rs.

      • Consistent spacing and formatting.
    19. Refactor code to improve readability and remove unnecessary whitespace.

      • General code cleanup.
    20. Added shebang back in run.py, removed extra newline in watch.sh.

      • Addressed additional code style issues.

    Pull Request Details

    opened by CodeByAidan 0
Owner
Daniel Huang
Looking for an internship!
Daniel Huang
My solutions for the Advent of Code 2023.

?? Advent Of Code 2023 Hi! These are my Rust solutions for the Advent of Code 2023. Day Name Source Part 1 Part 2 Time 1 Time 2 1 Trebuchet?! 01.rs ⭐

Marcus Cemes 3 Dec 7, 2023
Solutions of Advent-of-Code 2023 in Rust

Advent of Code 2023 in Rust If you've never heard of Advent of Code, you're missing out. Check it out now at adventofcode.com! I mostly do AoC puzzles

Aurélien Geron 4 Dec 8, 2023
Solutions to Advent of Code 2023 in Rust 🎄

Advent of Code 2023 Solutions to Advent of Code 2023 in Rust ?? Day Part 1 Part 2 Thoughts 1 ⭐ ⭐ As with most early advent of code challenges, it's mo

Pedro Godinho 6 Dec 6, 2023
🎄🎅 My Advent of Code 2023 solutions 🎁⛄

???? My AOC 2023 solutions ??⛄ ?? Table of contents ?? Table of the days ?? Goals ⛄ Quickstart ?? Table of the days Day Part 1 Part 2 Language 01 Toki

rei 6 Dec 11, 2023
Solutions to Advent of Code 2023 in Rust! :crab:

AdventOfCode2023 ?? Solutions to AoC 2023 in Rust ?? Usage # to be able to download inputs (see fetch.sh) export AOC_SESSION=[value from session cooki

Axel Lindeberg 27 Dec 17, 2023
My Advent of Code 2023 solutions in the Rust programming language.

Advent of Code 2023 in Rust My Advent of Code 2023 solutions in the Rust programming language. This repository holds a separate Rust project for each

Tim Visée 65 Dec 17, 2023
First project in rust which will be to make an accounts system & Leaderboard/Score system

rust-backend this is my first project in rust which will be to make a backend for compsci project it will include: Accounts, Player Achievements (if I

NaughtyDog6000 2 Jul 13, 2023
Advent of Code 2021 puzzles & solutions in Rust

Advent of Code 2021 These are puzzles for the Advent of Code 2021 challenge, written and solved in the Rust programming language. The puzzle for each

Chevy Ray Johnston 8 Dec 19, 2021
Repository with my Advent of Code 2021 puzzle solutions 🎄

?? Advent of Code 2021 ?? I decided to stick with Rust this year and try to improve a bit on it, I basically haven't used it since last year's AoC, so

fratorgano 2 Dec 1, 2022
My solutions to Advent of Code 2021 (mostly in rust)

Advent of Code 2021 Small code to solve problems at https://adventofcode.com/2021. Most of the code are written in Rust. How to run solutions For exam

“Plane” Abhabongse  Janthong 3 Apr 22, 2022