Skip to content

Day 5#5

Merged
robrodi merged 2 commits intomainfrom
day5
Dec 18, 2025
Merged

Day 5#5
robrodi merged 2 commits intomainfrom
day5

Conversation

@robrodi
Copy link
Copy Markdown
Owner

@robrodi robrodi commented Dec 18, 2025

No description provided.

@robrodi robrodi merged commit 1ff4752 into main Dec 18, 2025
1 check passed
@robrodi robrodi deleted the day5 branch December 18, 2025 14:30
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +30 to +33
pub fn part_two(input: &str) -> Option<u64> {
let (starts, ends, _ids) = parse(input);

Some(starts.into_iter().zip(ends).map(|(s, e)| { e-s +1 }).sum())
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Align part_two result with test expectation

part_two currently always returns the summed length of the merged ranges as Some(...), but day5_test_part_two asserts that the function should return None. With the example input in data/examples/05.txt this code returns Some(14), so running cargo test --bin 05 day5_test_part_two will consistently fail. Update the function or the test so the expected value matches the implemented behavior.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant