Post
First, the challenge: adventofcode.com/2024/day/2 TL;DR: a bunch of numbers in text. Every line of numbers is a "record". How many records are ordered with elements differ only by 1, 2, or 3? A record is also fine if it satisfies these rules without one of its elements. 😱
Let's break this scary (no so!) query apart. First, split the incoming string into an array of strings/lines and convert it into a set:
0 reposts0 likes