4 votes

Day 20: Grove Positioning System

Today's problem description: https://adventofcode.com/2022/day/20

Please post your solutions in your own top-level comment. Here's a template you can copy-paste into your comment to format it nicely, with the code collapsed by default inside an expandable section with syntax highlighting (you can replace python with any of the "short names" listed in this page of supported languages):

<details>
<summary>Part 1</summary>

```python
Your code here.
```

</details>

1 comment

  1. wycy
    (edited )
    Link
    I have a solution for part 1 (sample + my input) but just the sample for part 2. Ugh. I have no idea what could be wrong given it gets the sample perfectly. Edit: Figured out the problem, woohoo....

    I have a solution for part 1 (sample + my input) but just the sample for part 2. Ugh. I have no idea what could be wrong given it gets the sample perfectly.

    Edit: Figured out the problem, woohoo. The problem was:

    SpoilerI had handling to skip doing any mixing when the actual value was 0, but didn't properly handle this when the *effective* number (when using mod) was 0.
    1 vote