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
74
SOLUTION MEGATHREAD-🎄- 2022 Day 11 Solutions -🎄-(self.adventofcode)
submitted 3 years, 1 month ago* (edited 17 minutes after) by daggerdragon to /r/adventofcode (134.8k)
1036 commentsredditother-discussionssubreddit-indexmessage modsop-focus

WIKI NEWS

  • The FAQ section of the wiki on [Code Formatting](https://www.reddit.com/r/adventofco...

... view full text

2 years, 11 months ago
—
3 years, 1 month ago
3 of 3

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
[–][deleted]13 points3 years, 1 month ago
[deleted] by user
(check your username's removed content. why?)
hide replies (1)as-of
[–]Least-Restaurant-6891 point2 years, 11 months ago

I’m sorry if this question is too dumb. If the new rule produces the same result when checking divisibility as the division by 3 rule in part 1, why do they yield different results on round 20?

In part 1 example, at round 20: Monkey 0 inspected 101 times Monkey 1 inspected 95 times Monkey 2 inspected 7 times Monkey 3 inspected l 105 times

But in part 2, at round 20: Monkey 0 inspected 99 times Monkey 1 inspected 97 times Monkey 2 inspected 8 times Monkey 3 inspected 103 times

If the divisibility is the same, and the path is the same, shouldn’t both yield the same results?

permalinkparentcontexthide replies (1)author-focusas-ofpreserve
[–]QultrosSanhattan1 point2 years, 11 months ago

Part 2 naturally differs from part 1 because you're no longer allowed to divide the worry level by 3. Removing that help is what causes the numbers to skyrocket out of control.

If you grab your working code from part 1 and only remove the division by 3 then you should get the same numbers at the example shown at part 2 at round 20. The problem is that you' won't be able to run that exact piece of code at 10000 rounds.

In other words, the course of events should be the following:

  1. part 1: divide by 3, get 101,95,7,105 at end of round 20
  2. part 2: remove the division by 3, get 99,97,8,103 at the end of round 20.
  3. try to run part 2 10000 cycles, the program crashes due to big numbers.
  4. Modify your code so it can produce the results at step 2 but is able to keep the worry levels low enough so it can reach 10000 cycles without crashing.
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