Maximal Square at ServiceNow

Medium50.0% acceptance

This problem has 62.5% frequency at ServiceNow.

Problem Description

Given an `m x n` binary `matrix` filled with `0`'s and `1`'s, _find the largest square containing only_ `1`'s _and return its area_.

Read full problem and hints

Topics

Also asked at 29 companies


More ServiceNow Questions

View all ServiceNow questions