Browse Source

cleanup

master
mid-kid 2 years ago
parent
commit
0159eec6a0
  1. 7
      d04.cc

7
d04.cc

@ -9,13 +9,12 @@ public:
unsigned min;
unsigned max;
bool contains(const Range &in) {
bool contains(const Range &in) const {
return min <= in.min && max >= in.max;
}
bool overlaps(const Range &in) {
return (min <= in.min && in.min <= max)
|| (in.min <= min && min <= in.max);
bool overlaps(const Range &in) const {
return min <= in.max && in.min <= max;
}
};

Loading…
Cancel
Save