Pergunta de entrevista da empresa SailPoint Technologies

Given a nxn graph find smallest rectangle within the graph