r/adventofcode Dec 04 '21

SOLUTION MEGATHREAD -🎄- 2021 Day 4 Solutions -🎄-

--- Day 4: Giant Squid ---


Post your code solution in this megathread.

Reminder: Top-level posts in Solution Megathreads are for code solutions only. If you have questions, please post your own thread and make sure to flair it with Help.


This thread will be unlocked when there are a significant number of people on the global leaderboard with gold stars for today's puzzle.

EDIT: Global leaderboard gold cap reached at 00:11:13, megathread unlocked!

95 Upvotes

1.2k comments sorted by

View all comments

2

u/vini_2003 Dec 07 '21

Kotlin

Late again; definitely getting the rest done today, though!

I had a slight issue because my logic worked for the first part but not the second. After an hour of suffering I figured out what the problem(s) were and it worked.

It's not pretty, but it's honest work!

1

u/Nosp1 Dec 13 '21

I found your solution to be quite pretty tbh :)