[#]AdventOfCode was quite easy today
Build a map(dictionay) of the track x,y -> distance
Part1: for each point in track check if point 2 moves in direction is in track, and d2-d1-2>=100
Part2: for all pairs of points in track, if Manhattan distance m is <= 20 it's a potential cheat, check cheat gain d2-d1-m >= 100
=> More informations about this toot | View the thread | More toots from thinkb4coding@mastodon.social
=> View adventofcode tag This content has been proxied by September (ba2dc).Proxy Information
text/gemini