Pergunta de entrevista da empresa Zeekit

program gets 2 rectangles dimensions (x, y, w, h). need to determine if they overlap. partial or full overlap are acceptable.

Resposta da entrevista

Sigiloso

27 de ago. de 2023

beside the naive solution, simplest logic is to check if top left angle point (x, y) and bottom right point (x,y) are within both rectangles.