LOADING: An error occurred. Update Chrome, try Firefox, or visit this post for more details.

āš ļøReddit changed how removals work, which breaks Reveddit's website. Install the extension to track removed content:Add to chromeAdd to firefoxWhat changed?
āœ–ļøŽ
about reveddit
āš™F.A.Q.add-ons
r/
status
copy sharelink
[+] show filters
24
SOLUTION MEGATHREAD-šŸŽ„- 2018 Day 23 Solutions -šŸŽ„-(self.adventofcode)
submitted 7 years, 1 month ago* (edited 1 hour, 40 minutes after) by daggerdragon to /r/adventofcode (134.8k)
205 commentsredditother-discussionssubreddit-indexmessage modsop-focus

--- Day 23: Experimental Emergency Teleportation ---


Post your solution as a comment or, for ...

... view full text

since 7 years, 1 month ago
6 of 6

Tip Reveddit Real-Time can notify you when your content is removed.

your account history
(check your username's removed content. why?)
Tip Check if your account has any removed comments.
view my removed comments
you are viewing a single comment's thread.
view all comments
[–]seligman991 point7 years, 1 month ago

Would you mind getting me a copy of your data set? I’d love to play with it.

permalinkparentcontexthide replies (1)author-focusas-ofpreserve
[–][deleted]1 point7 years, 1 month ago
[deleted] by user
(check your username's removed content. why?)
parenthide replies (1)as-of
[–]seligman993 points7 years, 1 month ago

That was cute. It worked for me with your sample input (and got the correct value), however, I think I know what happened here.

I've edited the post and you can grab the working version from here. If you're using python3 like a normal person, and not python2 like a silly person like me, my original version wouldn't work since it assumed integer math. But PEP-238 changed the rules a bit. I've changed it to use the integer divide operator so it works in both python2 and 3.

Thanks for the sample data! This is lesson #789345 that I need to move on to python3. One day I will.

permalinkparentcontexthide replies (1)author-focusas-ofpreserve
[–][deleted]1 point7 years, 1 month ago

I have never bought gold before, but I have been banging my head on this problem for the past two days and your solution was the first to work. So enjoy your gold.

permalinkparentcontexthide replies (1)as-of
[–]seligman992 points7 years, 1 month ago

Thanks for the gold!

I've been there before, so don't fret too much over it (Heck, I'm going through AoC 2016 right now and got stuck hard on day 11). Hopefully you can get past the annoyance of not being able to solve it and learn a thing or two. It's tough .. I know.

permalinkparentcontexthide replies (1)author-focusas-ofpreserve
[–]sebranly1 point7 years, 1 month ago

I know this is going to sound crazy but I literally solved 2016 day 11 by using OpenOffice Calc and moving cells around like in the example, by making sure I don't go too fast. I remember I took a look at the leaderboard first (I did 2016 in October-November 2018) and realized that it was a pretty long challenge, that's why I decided to play around with a spreadsheet first. Turned out the spreadsheet was sufficient for getting the stars and I spent less time than the 85th person or so for part 1 + part2. https://github.com/sebranly/advent-of-code#easy-challenges

​

Of course, if I did it in 2016 (on time) I wouldn't have had access to the leaderboard and would have decided to implement it with some code and I wouldn't have had a spot in the worldwide leaderboard anyway.

permalinkparentcontextauthor-focusas-ofpreserve
r/revedditremoved.substack.com
🚨 NEWS 🚨
āœ–ļøŽ

Important: Reddit Changed How Removals Work

A recent Reddit update makes mod-removed content disappear from profile pages, which breaks Reveddit's website.

Install the browser extension to receive removal alerts.

Add to chromeAdd to firefox

What changed?

r/revedditremoved.substack.com