Advent of Code 2022 - Day 9 Solution [Typescript]

preview_player
Показать описание
Consider a rope with a knot at each end; these knots mark the head and the tail of the rope. If the head moves far enough away from the tail, the tail is pulled toward the head.

// PART ONE
Simulate your complete hypothetical series of motions. How many positions does the tail of the rope visit at least once?

// PART TWO
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?

// FULL PROMPT

// GITHUB REP

// FREE STUFF

^^^ code snippets from all my lessons, AND MORE!

// SUPPORT ME

- Behind the scenes content (business analytics)
- "How I Made It" exclusive videos
- Private Slack
- Office Hours
- Request a video

// FOLLOW ME

// CHAPTERS
00:00 Strategy
01:06 Part One
07:00 Part Two
Рекомендации по теме
Комментарии
Автор

Rudimentary rope bridge physics! Wait till the elves see matter.js

heatherliu