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 hintsTopics
Also asked at 29 companies
More ServiceNow Questions
Trapping Rain WaterHardNumber of Distinct Roll SequencesHardContainer With Most WaterMediumGenerate ParenthesesMediumFirst Missing PositiveHard
View all ServiceNow questions