Source: Day 5: Cafeteria
Full solution for today (spoilers!).
Part 1
Given a list of ranges (inclusive) and a list of IDs, how many of the IDs are in any range?
Full solution for today (spoilers!).
Given a list of ranges (inclusive) and a list of IDs, how many of the IDs are in any range?
Full solution for today (spoilers!).
Given a grid of solid
@and empty cells., count how many solid cells have less than 4 neighbors.
Full solution for today (spoilers!).
Given a list of numbers, for each find the two digits in the number which if concatenated make the largest. Sum these values.
For example:
811111111111119should be89.
Full solution for today (spoilers!).
Given a list of ranges
a-b(ie11-22), sum all values that are made of two repeated chunks of digits (ie123123)
Full solution for today (spoilers!).
Implement a padlock with 100 values (0-99). Run each command (
L23to turn left by 23 places) and then output the number of times you landed on zero.