Pergunta de entrevista da empresa Valve Corporation

Find shortest distance between axis-aligned rectangles