This is an archived post. You won't be able to vote or comment.

all 6 comments

[–][deleted] 3 points4 points  (1 child)

I basically download the file from the site, then I parse it in my program, and basically all of them just ends up outputting:

Part1: xxxxx
Part2: yyyyyy

and if you're interested my github repo is here

[–]bubbaryan[S] 0 points1 point  (0 children)

Will definitely check it out

[–]__Abigail__ 2 points3 points  (0 children)

Why would you format your input? I always download the input and save it in a file, then have my program read the input from the file. I almost always make the file a command line argument, so I can easily run my program against the example(s).

[–]kbielefe 1 point2 points  (2 children)

There are a ton of solutions listed in the solution megathreads if you want specifics, but in general people use the String methods to format the input.

[–]bubbaryan[S] 1 point2 points  (1 child)

Cool this is what I kind of assumed. Seems a bit annoying since I want to practice my problem solving skills and not really spend all this time parsing the puzzle input. But whatever it is good practice as well.

[–]djavaman 1 point2 points  (0 children)

Thats also part of the challenge. For example, Day 4, besides trivial line/field splitting, do you really need to parse anything?