Skip to content

Commit 592ba61

Browse files
authored
Update README.md
1 parent 27f9728 commit 592ba61

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

2024/Day04/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## --- Day 4: Ceres Search ---
22
"Looks like the Chief's not here. Next!" One of The Historians pulls out a device and pushes the only button on it. After a brief flash, you recognize the interior of the __Ceres monitoring station__!
3-
As the search for the Chief continues, a small Elf who lives on the station tugs on your shirt; she'd like to know if you could help her with her <em>word search</em> (your puzzle input). She only has to find one word: <code>XMAS</code>.
3+
As the search for the Chief continues, a small Elf who lives on the station tugs on your shirt; she'd like to know if you could help her with her <em>word search</em>. She only has to find one word: <code>XMAS</code>.
44

55
Read the [full puzzle](https://adventofcode.com/2024/day/4).
66

7-
I used my proven tactic and converted the input to a Dictionary keyed by coordinates. It's easy to iterate over the keys and checking if we are in the bounds of the map as well.
7+
I employed my proven tactic of converting the input into a dictionary, using coordinates as keys. This approach makes it straightforward to iterate over the keys and check whether they fall within the bounds of the map.
88

9-
Representing the coordinates with Complex numbers is also a useful way to deal with stepping in various directions.
9+
Representing coordinates with complex numbers is another effective technique for handling steps in various directions.
1010

11-
The algorithm itself is simply a bruteforce check of all starting positions and reading orders.
11+
The algorithm itself is a straightforward brute-force check of all starting positions and reading orders.

0 commit comments

Comments
 (0)