Skip to content

Solve 2025 day 4#55

Merged
katzuv merged 18 commits into
mainfrom
solve/2025-04
May 7, 2026
Merged

Solve 2025 day 4#55
katzuv merged 18 commits into
mainfrom
solve/2025-04

Conversation

@katzuv

@katzuv katzuv commented May 7, 2026

Copy link
Copy Markdown
Owner

No description provided.

@github-actions github-actions Bot added the Solution Puzzle solution label May 7, 2026
@katzuv katzuv marked this pull request as ready for review May 7, 2026 17:50
Copilot AI review requested due to automatic review settings May 7, 2026 17:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Python solutions for Advent of Code 2025 Day 4 (parts 1 and 2) under the puzzles/solutions/2025/d04/ directory, following the repo’s per-day/per-part script layout.

Changes:

  • Introduces Part 1 solution that parses the grid and counts “accessible” paper rolls based on adjacent-roll constraints.
  • Introduces Part 2 solution that repeatedly finds accessible rolls, removes them from the grid, and totals all removed rolls across iterations.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
puzzles/solutions/2025/d04/p1.py Implements grid parsing + adjacency counting and computes Part 1 answer.
puzzles/solutions/2025/d04/p2.py Implements iterative removal loop on top of Part 1 helpers to compute Part 2 answer.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread puzzles/solutions/2025/d04/p2.py
Comment thread puzzles/solutions/2025/d04/p2.py Outdated
Comment thread puzzles/solutions/2025/d04/p2.py
@katzuv katzuv merged commit 30f97b5 into main May 7, 2026
1 check passed
@katzuv katzuv deleted the solve/2025-04 branch May 7, 2026 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Solution Puzzle solution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants