We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37d400d commit 226a4caCopy full SHA for 226a4ca
src/solutions/year2025/day07.rs
@@ -14,7 +14,7 @@ pub struct Day07;
14
impl Solution for Day07 {
15
fn part_one(&self, input: &str) -> String {
16
let grid: Grid<char> = Grid::from(input);
17
- let max_height = grid.columns_range().end();
+ let max_height = grid.columns_range().end() + 1;
18
let start = grid.get_first_position(&START).unwrap();
19
20
let splitters: HashSet<Point> = grid.get_all_positions(&SPLITTER).into_iter().collect();
@@ -43,7 +43,7 @@ impl Solution for Day07 {
43
continue;
44
}
45
46
- if down.current().y > max_height + 1 {
+ if down.current().y > max_height {
47
48
49
0 commit comments