Advent of Code 2022 - Day 5

This is a thread to discuss Day 5

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

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

This ones a nice fun one :slight_smile:

Part1


Part2

IMHO Part2 was too easy - not a proper Advent of Code Part 2 really

Animation of part 1

snap

Here's my solution (I stole your parser... this was horrific :D)

part1

part2

And yaay, this is my new Advent of Code Record <3 <3

Summary

replace the move from to with nothing
(manually input the 9 stacks and they are stacks)
stack dot pop
stack dot push

?

Part 1


the first warp block is for parsing the input. The second one is for moving the crates around.

Part 2


Literally all I changed was, I removed a [reverse] of block.

project

I agree with @cymplecy, part 2 was too easy. At least part 2 of 2021 day 6 made you optimize your code.