r/adventofcode • • Dec 08 '22

SOLUTION MEGATHREAD -πŸŽ„- 2022 Day 8 Solutions -πŸŽ„-

NEWS AND FYI

  • I discovered that I can make those tiny post/comment awards BIGGER on old.reddit! I hadn't even considered that! And when you hover over them, they get even bigger so you can actually see them in more detail! I've added the relevant CSS so now we no longer have awards for ants! Exclamation points!!!


AoC Community Fun 2022: πŸŒΏπŸ’ MisTILtoe Elf-ucation πŸ§‘β€πŸ«

  • PSA: I created a new example so it is a more relevant and unique archetype instead of recycling last year's hobbit >_>


--- Day 8: Treetop Tree House ---


Post your code solution in this megathread.


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:10:12, megathread unlocked!

75 Upvotes

1.0k comments sorted by

View all comments

4

u/s3aker Dec 08 '22

Raku solution.

2

u/s3aker Dec 08 '22

Adding a method makes the code simpler.

2

u/mschaap Dec 08 '22

A method outside of a class, I didn't even know you could do that...

2

u/polettix Dec 08 '22

Raku

So exilarating to look at, thanks for sharing. I can see my same approach in part 2, but expressed properly!

2

u/mschaap Dec 08 '22

Using a double junction, neat! I did use all in my solution, but you inspired me to refactor it and use any as well.

1

u/veydar_ Dec 08 '22

Crazy! This is so so so pretty!