WayfairFrontend Engineer · Phone ScreenCodemia practiceDetect Overlapping Furniture in a Room Planner Layout
Given room dimensions and a list of furniture pieces as axis-aligned rectangles (name, x, y, width, depth), return the pieces that extend outside the room and every pair of pieces whose footprints overlap. Pieces that only touch along an edge are allowed.