Live data from Hacker News

Advent of Code 2019

adventofcode.com

71–75 of 75 posts

Re: Advent of Code 2019

#71

This year I really want to try to use this to learn Rust. Are there any good practices or crates to handle file input like most of the problems give? As I recall, most of the time the input is delineated by spaces or linebreaks and it helps if you can carve it up easily right off the bat.

Last year I attempted it during a comically short time (only 3 days), but was able to settle on something like this: https://github.com/j1elo/advent-of-code-2018-rust/blob/maste...

i.e. pass the input from standard input, and just build an on-the-go Vector of some data type that is appropriate for the problem at hand. Day 3 was different from 1 and 2 in that for the first time the parsing was not immediate; using Serde and Recap modules did a fantastically succinct job of parsing the text input. Of course it depends on how much you want to rely on external crates.

Let's see if this year I can do more than 3 days worth of AoC :-)

Re: Advent of Code 2019

#72
post #28

Earlier quoted context omitted.

Outside of family, work, and exercise, I have time and energy for approximately one personal project. AoC got to be a bit of a grind for me last year. Something came up, and I missed a few days towards the end. I told myself I was going to go back and finish, but I never did. I'm tempted to try again this year, but I don't know. I already have projects languishing in need of some attention. On the other hand, it's lo…

Same here. I got back to some problems I left open due to other obligations but finally quit. Plus there's the "problem" of the timezone: Puzzles start at 6am here. Last year I had some time off between jobs but this time it collides with my usual heading to the train. Unless I am really fast and am able to solve between 6:00 and 6:04 ;-) Related is the tool of choice. I was and would probably still be using Python w…

Agree with the timezone being problematic. I find the leaderboard to be a big turn-off/demotivator as I have no chance of making it there.

Re: Advent of Code 2019

#73
post #10

Do you still need to sign up in order to use this? I've been wanting to do AoC for the past few years, but the mandatory signup prevented me from doing so. Just give me the tasks. I don't want any leaderboards or anything like that. Edit: The aspect of customized tasks does not require sign-ups. Just use a cookie or something.

As an alternative to the suggestions, some repositories include the inputs along with the problem descriptions.

This one has a fair bit: https://gitlab.com/BafDyce/adventofcode

Verifying your answer will be tricky though, since you won't know if someone else's code is correct for your input unless you find a repo that also includes the verified result.

Post reply on HN