r/adventofcode • • Dec 16 '16

SOLUTION MEGATHREAD --- 2016 Day 16 Solutions ---

--- Day 16: Dragon Checksum ---

Post your solution as a comment or, for longer solutions, consider linking to your repo (e.g. GitHub/gists/Pastebin/blag/whatever).

Note: The Solution Megathreads are for solutions only. If you have questions, please post your own thread and make sure to flair it with "Help".


DRINKING YOUR OVALTINE IS MANDATORY [?]

This thread will be unlocked when there are a significant number of people on the leaderboard with gold stars for today's puzzle.

edit: Leaderboard capped, thread unlocked!

5 Upvotes

116 comments sorted by

View all comments

Show parent comment

1

u/lovpowa Dec 17 '16

This is the problem that I had. Changing the String to a StringBuffer was extremely faster. I don't know why I did not do it earlier. I tend to use it if I know I will append a lot, but I had never really experienced the difference. I guess I won't underestimate it now.

I knew that printing is slow though.

Thanks!