We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 312ab11 commit a5d555fCopy full SHA for a5d555f
scripts/algorithms/M/Magic Squares In Grid/Magic Squares In Grid.cpp
@@ -1,3 +1,4 @@
1
+// Runtime: 0 ms (Top 100.00%) | Memory: 8.4 MB (Top 48.63%)
2
class Solution {
3
public:
4
int numMagicSquaresInside(vector<vector<int>>& grid) {
@@ -24,7 +25,7 @@ class Solution {
24
25
if(
26
(col1 == col2) &&
27
(col1 == col3) &&
- (col1 == row1) &&
28
+ (col1 == row1) &&
29
(col1 == row2) &&
30
(col1 == row3) &&
31
(col1 == diag1) &&
@@ -40,4 +41,4 @@ class Solution {
40
41
}
42
return false;
43
-};
44
+};
0 commit comments