Largest Square Subgrid
OpenAI interview questions · Medium · Coding round · 6 tests
The subtle requirement is global: a side length is valid only if every square of that size fits under the limit, not merely the best-looking one.
The full question, tests and reference solution are available with a plan that includes OpenAI.
Run your code with Ctrl+Enter to see results.