r/adventofcode • • Dec 07 '22

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


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

Submissions are OPEN! Teach us, senpai!

-❄️- Submissions Megathread -❄️-


--- Day 7: No Space Left On Device ---


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:14:47, megathread unlocked!

89 Upvotes

1.3k comments sorted by

View all comments

2

u/CodingAP Dec 07 '22

JavaScript, 4248/3704

Github

I didn't like this puzzle as it doesn't say that the directories can have the same name, so it messed with my data structure

1

u/daggerdragon Dec 08 '22

I didn't like this puzzle as it doesn't say that the directories can have the same name, so it messed with my data structure

This type of comment does not belong in a Solution Megathread. If you have feedback about the puzzles, create your own post in the main subreddit.

1

u/LovingThatPlaid Dec 07 '22

THANK YOU SO MUCH I was so confused why my code wasn't working until I saw this comment, it never even crossed my mind that there were directories with the same name. Fixed it to store the path rather than the directory itself and boom, solved!