Photo by Philipp Medicus (CC BY-NC 2.0)
Input is the same as for 2.1. This time I must find ids that differs by one letter in the same position:
Doing puzzle #2 of advent of code challenge in Rust. The puzzle is pretty simple. Input looks like this:
After first puzzle in advent of code i found a function that can be reused:
In my first puzzle in advent of code challenge I used some copy/pasted rust code which was not completely clear to me... It's time to understand the code and document it here.
Photo by Mike Baird (CC BY 2.0) Cropped.
Photo by Kevin Utting (CC BY 2.0) Cropped.
Photo by Paul VanDerWerf (CC BY 2.0) Cropped.