diff --git a/src/day04.rs b/src/day04.rs index 4f66845..5b069ce 100644 --- a/src/day04.rs +++ b/src/day04.rs @@ -23,7 +23,7 @@ fn contains_range(slf: &RangeInclusive, other: &RangeInclusive) -> boo } fn overlaps_with_range(slf: &RangeInclusive, other: &RangeInclusive) -> bool { - slf.contains(other.start()) + slf.contains(other.start()) || slf.contains(other.end()) } #[aoc(day4, part1)]