Advent of Code 2022 - Day 6

This is a thread to discuss Day 6

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


This text will be hidden

which you can obtain by clicking on the gear icon


Part 1

aoc22Day6 script pic

Part 2

here's my solution, using the frequency distribution analysis library (analyze has become one of my favourite blocks ;))

part 2 was a little boring, you just need to adapt the numbers...

Day 6 - pt. 2 is exactly the same script just all 3s are changed to 13s, the 4 is changed to 14

Part 1 and 2

Just change length to 14 for part 2