[Rust Programming] Advent of Code 2023 - Day 1 - Trebuchet?!

preview_player
Показать описание
My Rust solution for Day 1 of Advent of Code 2023.

This contains the solution to parts 1 and 2, and also an alternate solution to part 2 using the "aho_corasick" crate.

0:00 Problem Description
2:41 Setting up the environment
4:29 Part 1
9:29 Part 2 Brute Force
18:29 Part 2 Using Aho-Corasick

#aoc #adventofcode #adventofcode2023 #rust #rustlang #aoc2023
Рекомендации по теме
Комментарии
Автор

first time learning about the aho-corasick algorithm, thanks

spaceplex
Автор

Part 1 alone took me about 60 minutes to solve 😭
I need to hack my brain.

Dru-ys
Автор

I'm confused. It's my first time playing AOC, and my answers were 55002 and 55093, and they were accepted

felipepegoraro