Given two axis-aligned rectangles represented as `rec1 = [x1, y1, x2, y2]` and `rec2 = [x3, y3, x4, y4]`, return true if the two rectangles overlap, otherwise return false. A rectangle is represented…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.