Source: Day 9: Movie Theater
Full solution for today (spoilers!).
Part 1
Given a list of points (2D), find the pair of points which form the largest rectangle.
Full solution for today (spoilers!).
Given a list of points (2D), find the pair of points which form the largest rectangle.
Full solution for today (spoilers!).
Given a list of points in 3D space, connect the 1000 closest nodes to each other. Calculate the product of the size of the 3 largest resulting regions?
Full solution for today (spoilers!).
You are given a map like this:
.......S....... ............... .......^....... ............... ......^.^...... ...............A laser shines from the top
Sand splits each time it hits a^, making this:.......S....... .......|....... ......|^|...... ......|.|...... .....|^|^|..... .....|.|.|.....The two lasers in the center of this example merge to count as one laser.
Count how many times lasers hit splitters.
Full solution for today (spoilers!).
Given input like this:
123 328 51 64 45 64 387 23 6 98 215 314 * + * +Apply the operation in each column then sum the results.
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!).
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.