Advent of Code 2022 - Day 4

This is a thread to discuss Day 4

https://adventofcode.com/2022/day/4

REMEMBER!
It is VERY important NOT to write any public spoilers :slight_smile:
ALWAYS keep spoiler stuff hidden inside one of these

Summary

This text will be hidden

which you can obtain by clicking on the gear icon

image

Part 1

aoc22Day4 script pic

Part 2

I like it when the puzzles lead me into making a generic block that might be useful in future :slight_smile:

set.intersection

Part 1

This was surprisingly easy

Part 2

It may take a while, but it works

Project

Oh, and I did this on my phone.

I like your multiple split block !

It's very handy for these :slight_smile:

Award yourself another star :slight_smile:

Sorry, i'm late !

Part 1 - Inefficient

Part 1 - Revisited

advent of code-2022-day4 script pic (1)

Part 2

advent of code-2022-day4 script pic (2)

project