Advent of Code solutions
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

assume midpoint

Rain 13f0bb23 e009aa81

+2 -8
+2 -8
2025/rust/7/src/main.rs
··· 60 60 } 61 61 62 62 fn part2(input: Vec<String>) -> usize { 63 - let start = input 64 - .first() 65 - .unwrap() 66 - .chars() 67 - .enumerate() 68 - .find(|&(_, c)| c == 'S') 69 - .unwrap() 70 - .0; 63 + // we can assume its the midpoint with our inputs 64 + let start = 0usize.midpoint(input.get(0).unwrap().len()); 71 65 72 66 get_count(input, 1, start, &mut HashMap::new()) 73 67 }