AOC 2022 Day Three #757
Replies: 11 comments 27 replies
-
JS: https://github.com/clandau/advent-of-code/blob/main/2022/day-3/index.js I was extremely excited to get to part 2 and be able to reuse a function. |
Beta Was this translation helpful? Give feedback.
-
Tried to be at least a LITTLE conscious of runtime today. That let me cheat and use |
Beta Was this translation helpful? Give feedback.
-
Definitely my ugliest solution thus far, but it functions! ruby |
Beta Was this translation helpful? Give feedback.
-
This is a good question for F#. There's a lot of good built ins in the Collection libraries. Answer here Most of my debugging time was because I fail at basic arithmetic. |
Beta Was this translation helpful? Give feedback.
-
F# for day 03
I often write tests to drive out and prove my logic against each step of the example; I've caught more bugs that way... 😎 |
Beta Was this translation helpful? Give feedback.
-
Another ruby: https://github.com/danimeyer/advent-of-code/blob/main/2022/3.rb I am learning all kinds of ruby methods. I still feel like JavaScript is the language I know best, and it is wild how many methods and ways of doing things exist in ruby! |
Beta Was this translation helpful? Give feedback.
-
Here's my ts solution! https://github.com/danieltott/aoc2022/blob/main/src/day03/index.ts I feel pretty good about the efficiency of these, but I'm sure that I will feel bad about it again after seeing y'alls solutions 😂 |
Beta Was this translation helpful? Give feedback.
-
Again, a just-get-it-done solution but I'm proud of the way I've been taking it step-by-step! solution 1: https://github.com/Cerchie/adventofcode2022/blob/main/day-03/index.js solution 2: https://github.com/Cerchie/adventofcode2022/blob/main/day-03/index2.js |
Beta Was this translation helpful? Give feedback.
-
Another day, another reducer https://github.com/BogDAAAMN/advent-of-code-2022/blob/main/day-03.js Honestly not super proud of these either, but it was nice to learn about charCodeAt(). Although it took me a while to understand why it's not working and implement the offset. |
Beta Was this translation helpful? Give feedback.
-
JS: https://github.com/aishwarya-mali/advent-of-code/blob/main/2022/Day-3/script.js |
Beta Was this translation helpful? Give feedback.
-
Discussion of solutions for Advent of Code Day 3 here
VC Advent of code leaderboard
Go to leaderboard/private and use join code 363496-e6f42283
Beta Was this translation helpful? Give feedback.
All reactions