Advent of Code 2022 - Day 6

This is a thread to discuss Day 6

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

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

aoc22Day6 script pic

Part 2

https://snap.berkeley.edu/snap/snap.html#present:Username=cymplecy&ProjectName=aoc22Day6&editMode

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

project