/technology
+⧖>Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like. People use them as a speed contest, interview prep, company training, university coursework, practice problems, or to challenge each other. https://adventofcode.com/ /g/ leaderboard join code: 224303-2c132471 anonymous-only leaderboard: 383378-dd1e2041 22 hours and 37 minutes remain.
>Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like. People use them as a speed contest, interview prep, company training, university coursework, practice problems, or to challenge each other. https://adventofcode.com/⧉ /g/ leaderboard join code: 224303-2c132471 anonymous-only leaderboard: 383378-dd1e2041 22 hours and 37 minutes remain.A robot with program roygbv would travel a total distance of 11. No it fucking wouldn't. Let's frame it in the same way as the prior example. roygbvroygbvroygbvroygbvroygbvroygbvroygbvroygbv ^ initial robot position roygbvroygbvroygbvroygbvroygbvroygbvroygbvroygbv ^ robot travels distance 1 to next orange waypoint roygbvroygbvroygbvroygbvroygbvroygbvroygbvroygbv ^ robot travels distance 1 to next yellow waypoint roygbvroygbvroygbvroygbvroygbvroygbvroygbvroygbv ^ robot travels distance 1 to next green waypoint roygbvroygbvroygbvroygbvroygbvroygbvroygbvroygbv ^ robot travels distance 1 to next blue waypoint roygbvroygbvroygbvroygbvroygbvroygbvroygbvroygbv ^ robot travels distance 1 to next blue waypoint After these instructions, the robot has traveled a total distance of 5. THAT'S IT I wasted 15 minutes debugging part 1 before I realized the second fucking example is just wrong.
⧖expiring0/1 kept1d ago
⏱ 2d 👍 0
⬆ upvote 0
/technology
trying
closest
needs