#iterators
2 articles tagged #iterators. All tags
Day 8 (Advent of Code 2022)
In the day 8 problem, our input is a height map: 30373. 25512. 65332. 33549. 35390. This is a 5x5 grid, and every number denotes the height of a tree. For part 1, we must find out how many trees are…
8 min
Day 1 (Advent of Code 2022)
Two years ago, I did part of Advent of Code 2020 using the Rust language. It was a lot of fun, so let’s try it again! The problem statement. Our input looks something like this: 1000. 2000. 3000.…
32 min