Skip to content

Commit a5d555f

Browse files
committed
Runtime: 0 ms (Top 100.00%) | Memory: 8.4 MB (Top 48.63%)
1 parent 312ab11 commit a5d555f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/algorithms/M/Magic Squares In Grid/Magic Squares In Grid.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 0 ms (Top 100.00%) | Memory: 8.4 MB (Top 48.63%)
12
class Solution {
23
public:
34
int numMagicSquaresInside(vector<vector<int>>& grid) {
@@ -24,7 +25,7 @@ class Solution {
2425
if(
2526
(col1 == col2) &&
2627
(col1 == col3) &&
27-
(col1 == row1) &&
28+
(col1 == row1) &&
2829
(col1 == row2) &&
2930
(col1 == row3) &&
3031
(col1 == diag1) &&
@@ -40,4 +41,4 @@ class Solution {
4041
}
4142
return false;
4243
}
43-
};
44+
};

0 commit comments

Comments
 (0)