diff --git a/src/bin/11.rs b/src/bin/11.rs index 017b338..317d823 100644 --- a/src/bin/11.rs +++ b/src/bin/11.rs @@ -39,10 +39,6 @@ fn solve(input: &str, expand_by: isize) -> Option { let mut distance_sum = 0; for (from, to) in galaxies.iter().tuple_combinations() { - if from == to { - continue; - } - let range_x = if from.0 < to.0 { from.0..to.0 } else { to.0..from.0 }; let range_y = if from.1 < to.1 { from.1..to.1 } else { to.1..from.1 };