Find the maximum area among all possible rectangles given a large array of coordinates (matrix)
Leetcode 3047. Find the Largest Area of Square Inside Two Rectangles
Given a set of axis-aligned rectangles, find the largest-area axis-aligned square that can fit entirely inside the intersection region of at least two rectangles. The core challenge is geometric: for overlapping rectangle pairs compute their intersection rectangle and use the smaller of its width and height as the maximum square side, returning the largest such area (or 0).
Onde essa pergunta já apareceu
Use esses exemplos para entender em que contexto ela costuma cair e adaptar sua prática.
Materiais associados
Nenhum anexo público associado a esta pergunta.
Depois de treinar essa pergunta, vale abrir outras do mesmo tipo e da mesma senioridade para comparar padrões de resposta.
Isso ajuda a sair da memorização de uma resposta só e entrar em repertório real de entrevista.
Continue a preparação com o banco completo
No app você encontra perguntas parecidas, compara empresas e aprofunda essa busca com mais filtros.