Skip to content

Commit 9669bf8

Browse files
Apply suggestions from code review
1 parent a2a2a23 commit 9669bf8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Maximal_square.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/*
2+
https://leetcode.com/problems/maximal-square
23
Maximal Area of Square
34
45
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.
@@ -22,7 +23,7 @@ Output: 0
2223
* @return {number}
2324
*/
2425
var maximalSquare = function(matrix) {
25-
var m = matrix.length;
26+
var m = matrix.length;
2627
var n = (matrix[0] || []).length;
2728
var dp = Array(m).fill(0).map(_ => Array(n));
2829
var max = 0;

0 commit comments

Comments
 (0)