2022 day 9: Bash part 2, same code for both part (slower #1)

This commit is contained in:
2022-12-13 18:38:24 +01:00
parent 13d183de79
commit 38ef781f0a
4 changed files with 51 additions and 34 deletions

View File

@@ -286,8 +286,6 @@ positions does the tail of the rope visit at least once?/
Your puzzle answer was =5619=.
The first half of this puzzle is complete! It provides one gold star: *
** --- Part Two ---
A rope snaps! Suddenly, the river is getting a lot closer than you
remember. The bridge is still there, but some of the ropes that broke
@@ -743,3 +741,7 @@ Now, the tail (=9=) visits =36= positions (including =s=) at least once:
Simulate your complete series of motions on a larger rope with ten
knots. /How many positions does the tail of the rope visit at least
once?/
Your puzzle answer was =2376=.
Both parts of this puzzle are complete! They provide two gold stars: **