1const X1: usize = 0;2const Y1: usize = 1;3const X2: usize = 2;4const Y2: usize = 3;56impl Solution {7pub fn is_rectangle_overlap(rec1: Vec<i32>, rec2: Vec<i32>) -> bool {8rec1[X1] < rec2[X2] && rec1[X2] > rec2[X1] && rec1[Y1] < rec2[Y2] && rec1[Y2] > rec2[Y1]9}10}