home.social

#aoc23 — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #aoc23, aggregated by home.social.

  1. The thing I don't like about AoC is that the example inputs are a bit too simple. In this case, my code works fine for both example inputs, but it fails for the actual input which is so big that it's practically impossible to debug to find out what is going on. #aoc #aoc23 #aoc2023

  2. AoC23 be like: “Part 1 works, I think I did a pretty good job at making this efficient”. Part 2: "Nope” #AdventOfCode #aoc2023 #aoc23 #aoc

  3. Found part one of Puzzle 12! Man, what an ordeal. The solution was simple in the end, but we'll have to see if it scales up for part 2. #aoc2023 #aoc23 #aoc

  4. @c_discussions 🤦‍♂️

    And here I was thinking vectors and ranges were overkill for #aoc23 Day 1, Part 1, but little did I know the possibilities.

    hachyderm.io/@smurthys/1115193

    #cpp #aoc2023 #AdventOfCode

  5. Once again I learn I will go to incredibly great lengths to avoid solving the quadratic equation.

    I've completed "Wait For It" - Day 6 - Advent of Code 2023 #AdventOfCode adventofcode.com/2023/day/6
    #aoc #AdventOfCode23 #aoc23 #aoc_cpp

  6. Once again I learn I will go to incredibly great lengths to avoid solving the quadratic equation.

    I've completed "Wait For It" - Day 6 - Advent of Code 2023 #AdventOfCode adventofcode.com/2023/day/6
    #aoc #AdventOfCode23 #aoc23 #aoc_cpp

  7. Nice to see many #cpp solutions to Advent of Code #aoc23. Seeing many solutions use actual files for input, and either cram lots of test cases into a single file, or use several input files, here's a possible improvement:

    Create and reuse std::instringstream for all test data without creating actual files. Plus with this approach you can more easily use online IDEs like Compiler Explorer because no files. 🤓

    Again just a tip. YMMV. Happy coding. #aoc2023

    CE template: sigcpp.godbolt.org/z/TeTzrMcdc

  8. I don't do Advent of Code, but browsing a few #cpp solutions to Day 1, Part 1, I fear I misunderstand the problem, or I just don't know enough C++. I'm not sure why the solution requires vectors, ranges, algorithms, etc. when it can be done in a single pass over the input stream.

    Maybe others' solutions are that way due to Part 2? But more likely I'm doing something wrong. 😨

    #Spoiler: Image reveals solution (edit: condense)

    adventofcode.com/2023/day/1

    #aoc23 #aoc23_cpp #AdventOfCode #programming

  9. Are there hashtags to follow #aoc23 posts for *specific languages*, something like #aoc23_cpp and #aoc23_python?

    There're simply too many posts to follow the main hashtag.

    🙏

    #adventofcode #aoc2023

  10. CW: AoC, day 1.

    Also I probably should have used #AoC23 and #AdventOfCode hashtags.