Advent of Code solutions
0
fork

Configure Feed

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

rename

kxt.pet cdc78384 24dd6755

verified
+2 -2
+2 -2
2025/2/src/main.rs
··· 4 4 for (start, end) in ranges { 5 5 for num in start..=end { 6 6 let num_string = num.to_string(); 7 - let (fhalf, lhalf) = num_string.split_at(num_string.len() / 2); 7 + let (lhs, rhs) = num_string.split_at(num_string.len() / 2); 8 8 9 - if fhalf == lhalf { 9 + if lhs == rhs { 10 10 counter += num 11 11 } 12 12 }