Skip to content

Commit 79c01c7

Browse files
authored
Update README.md
1 parent 619afcf commit 79c01c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2024/Day20/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The problem included a small but crucial hint: _there is only a single path from
99

1010
The definition of _cheating_ was super hard to understand. I have to admit that instead, I used my intuition and used a more simple definition: in cheat mode you can step to any cell within the distance of 2 (or 20 for the second part). This really worked.
1111

12-
I created a function that returns the points of the track from finish to start. This way, the _index_ of an item in the array corresponds to its distance to the finish line.
12+
I created a function that returns the points of the track in finish to start order. This way, the _index_ of an item in the array corresponds to its distance to the finish line.
1313

1414
Then, I go over the path. For each position, the number of possible cheats is calculated by checking what happens if we are trying to make a shortcut to any other positions around.
1515

0 commit comments

Comments
 (0)