Search⌘ K
AI Features

Solution: Rectangle Overlap

Solution: Rectangle Overlap gives two axis-aligned rectangles as corner-coordinate arrays. Return true only when their intersection has positive area, not when they merely touch.

Statement

An axis-aligned rectangle is represented by a list [x1,y1,x2,y2][x_1 ...