๐Ÿ“ฆ Chocorean / aoc22

Advent of Code 2022

โ˜… 2 stars โ‘‚ 0 forks ๐Ÿ‘ 2 watching
๐Ÿ“ฅ Clone https://github.com/Chocorean/aoc22.git
HTTPS git clone https://github.com/Chocorean/aoc22.git
SSH git clone git@github.com:Chocorean/aoc22.git
CLI gh repo clone Chocorean/aoc22
Baptiste CHOCOT Baptiste CHOCOT day 14; code is taking too long to run on input. dd742b4 3 years ago ๐Ÿ“ History
๐Ÿ“‚ dd742b4918fc161747493ebe6b5503012f532c51 View all commits โ†’
๐Ÿ“ c01
๐Ÿ“ c02
๐Ÿ“ c03
๐Ÿ“ c04
๐Ÿ“ c05
๐Ÿ“ c06
๐Ÿ“ c07
๐Ÿ“ c08
๐Ÿ“ c09
๐Ÿ“ c10
๐Ÿ“ c11
๐Ÿ“ c12
๐Ÿ“ c13
๐Ÿ“ c14
๐Ÿ“„ .gitignore
๐Ÿ“„ README.md
๐Ÿ“„ README.md

Advent of Code 2022

My modest attempt at AoC22 in Rust.

Comments

After validating day 13, Dec 17

Overall, I'm quite disappointed with my understanding of the problems. Either I don't read well, or my implementations are missing a case, or at least I don't think enough while writing. I've lost a ton of time looking for an error while I just did not understand what the game was expecting.

A little bit disappointed at myself, but at least now that I realized some of my weaknesses, that makes room for improvement. I want to use clippy when I will be done with this year's AoC, to see what I can improve with the code I currently write. I hope I will have the motivation to try the previous editions of AoC, and I hope to notice a difference with this year's code.

Finally, I found very helpful to look at fasterthanlime's serie. Not only he is using relevant and helpful I don't know about, but also has a better knowledge of the language, and I have found some really convenient way to do what I want in his snippets.

I have been cheating for the first time on day 13 (bruh), but I was starting to lose confidence and I needed to move on. After verifying my implementation was wrong (I validated part 1 with his code), I went back to my implementation once again, reviwed my logic, and finally found what the mistake.

Code for day 14 is currently running

The denial

I was looking at FTL's code, and realized how long mine will take to complete. I am currently thinking about trying something similar to increase the speed of my implementation. Overall I'm still okay with mine, for some reasons I struggled yesterday on it, but this morning I woke up fresh and I started over with a new approach, and eventually it was much easier like that.

The realization

Ok, let's take a break on this and move on day 15. I am opening an issue and I will take a look at this later.