News for hackers. Stuff that matters.
Re:Advent of Code 2022 by pedrosorio on Thursday December 01, 2022 @12:41AM (#33812785)
“Have solved many similar problems in the past so you can parse these problem statements quickly”

This sounds like an advent of code specific thing. The problem itself is trivial, no need to have solved anything similar in the past, but the description is so verbose (because it’s a cute Santa-related story) that it becomes hard to parse the problem we’re trying to solve, quickly.

I don’t think this is common in any other competitive programming environment.

Re:Advent of Code 2022 by matsemann on Thursday December 01, 2022 @12:55AM (#33812861)
Feel I have to disagree on this one. Firstly, most programming competitions I've been to have this kind of problem description as well, just check Kattis problems for instance.

But secondly, while the problems in the beginning are trivial, you still have a huge advantage if you can immediately start programming without having to think, or having to look up a function in the stdlib. (Spoilers:) I probably wasted a minute today thinking about the solution of making a list for elves, and creating a new element whenever I saw an empty line. While a pro probably immediately did a split on "\n\n", summed and was done.

Re:Advent of Code 2022 by timeon on Thursday December 01, 2022 @09:32AM (#33816690)
ehm

I did s.split("\n\n").fold... But this was first thing in the morning and where I lost time was that what I actually did as first was: s.split("/n/n")

Re:Advent of Code 2022 by nso95 on Thursday December 01, 2022 @12:59AM (#33812881)
It helps if you sort of read the problem statement backwards
Re:Advent of Code 2022 by reducesuffering on Thursday December 01, 2022 @01:51AM (#33813157)
You only need to read the bolded white words to have a very educated guess (5 second skim; it's intentional)
Re:Advent of Code 2022 by widforss on Thursday December 01, 2022 @04:04AM (#33813988)
Google FooBar uses this exact form as well, state the problem as a somewhat consistent story through the different challenges.