Skip to content

Commit 0c50fc9

Browse files
committed
fix(07/2025): solve second part changing integer size 🤦
1 parent f2ab58d commit 0c50fc9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
| [Day 4: Printing Department](src/solutions/year2025/day04.rs) | ⭐⭐ | 3.615 | 9.998 |
1818
| [Day 5: Cafeteria](src/solutions/year2025/day05.rs) | ⭐⭐ | 0.275 | 0.469 |
1919
| [Day 6: Trash Compactor](src/solutions/year2025/day06.rs) | ⭐⭐ | 0.117 | 2.577 |
20-
| [Day 7: Laboratories](src/solutions/year2025/day07.rs) | | 2.962 | - |
20+
| [Day 7: Laboratories](src/solutions/year2025/day07.rs) | | 6.711 | 5.789 |
2121

2222
# 2024
2323

src/commands/solve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ fn submit_answer_function(
6969
Ok(o) => match o {
7070
SubmissionOutcome::Correct => println!("✅ Answer is correct"),
7171
SubmissionOutcome::Incorrect => println!("❌ Answer is incorrect. Try again"),
72-
SubmissionOutcome::Wait => println!("⏳ Another answer submitted tu early. Wait and submit again in a while"),
72+
SubmissionOutcome::Wait => println!("⏳ Another answer submitted too early. Wait and submit again in a while"),
7373
SubmissionOutcome::WrongLevel => match part {
7474
PuzzlePart::PartOne => println!("Wrong level. Maybe this part has been already solved?"),
7575
PuzzlePart::PartTwo => println!("Wrong level. Maybe this part has already been solved or part one isn't solved?"),

src/solutions/year2025/day07.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const BEAM: char = '|';
1212
pub struct Day07;
1313

1414
type Splits = u16;
15-
type Timelines = u16;
15+
type Timelines = u64;
1616

1717
impl Solution for Day07 {
1818
fn part_one(&self, input: &str) -> String {
@@ -100,7 +100,7 @@ fn print(grid: &Grid<char>, beams: &[Beam]) {
100100
#[derive(Copy, Clone, Debug)]
101101
struct Beam {
102102
line: Line,
103-
timelines: u16,
103+
timelines: Timelines,
104104
}
105105

106106
impl Beam {

0 commit comments

Comments
 (0)