AOC 2022 Day Five 🏗️ #760
Replies: 11 comments 24 replies
-
Day 05 in F#
|
Beta Was this translation helpful? Give feedback.
-
JS: https://github.com/aishwarya-mali/advent-of-code/blob/main/2022/Day-5/script.js |
Beta Was this translation helpful? Give feedback.
-
TS solution: https://github.com/danieltott/aoc2022/blob/main/src/day05/index.ts Pull request: This one definitely took a little longer! |
Beta Was this translation helpful? Give feedback.
-
Not proud of this one at all. I tried to find more efficient ways to do it but I wasted all my energy on parsing the input 😂 I spent a lot of time trying to do some regex magic, but I quit at some point, so here we go. https://github.com/BogDAAAMN/advent-of-code-2022/blob/main/day-05.js I also tried to be more functional to make @tkshill and @davidalpert proud, but the reducers and the forEachs at the end feel wrong. I feel like I could have done it way much better in a functional way 🏗️ |
Beta Was this translation helpful? Give feedback.
-
Ruby solution today was pretty fun, i really need to remember to commit in between part 1 and part 2, because I made a change to the method signatures to pass the Also definitely had the most random print statements to chase down bugs today lol. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/doleraj/adventofcode/blob/main/aoc2022/src/day05/index.ts It's me, I'm the idiot who failed to parse the crates with regex and ended up wasting probably 30m trying before giving up |
Beta Was this translation helpful? Give feedback.
-
Is it ok that I am kind of proud of my one-line stacks parser using list comprehensions and zip? https://github.com/rhdeck/aoc-2022/blob/main/src/5/day_5.ipynb |
Beta Was this translation helpful? Give feedback.
-
JS: https://github.com/clandau/advent-of-code/blob/main/2022/day-5/index.js |
Beta Was this translation helpful? Give feedback.
-
Finally here. What a cursed problem. Tried to do it without the lovely And this is what happened: solution My solution for one made part 2 so similar I just factored out the 7 character difference? But that just makes me angrier. |
Beta Was this translation helpful? Give feedback.
-
Ruby: https://github.com/danimeyer/advent-of-code/blob/main/2022/5.rb I tried to create copies of the object I made to store the stacks so that I could manipulate both of them in one |
Beta Was this translation helpful? Give feedback.
-
Didn't get a chance to code yesterday so here are parts 1 (index.js) and 2 (index2.js) for day 5. Definitely hard-coded the first chunk of input. https://github.com/Cerchie/adventofcode2022/tree/main/day-05 |
Beta Was this translation helpful? Give feedback.
-
Discussion of solutions for Advent of Code Day 5 here.
Don't forget about VC Advent of Code private leaderboard:
363496-e6f42283
Beta Was this translation helpful? Give feedback.
All reactions