Skip to content

Commit 0b9e2d6

Browse files
committed
docs: 840. Magic Squares In Grid
1 parent d9d917b commit 0b9e2d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

medium/840. Magic Squares In Grid/solution-php.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To determine how many `3x3` subgrids within a given grid are magic squares, we n
2929
If the helper function returns true, increment the counter `$res`.
3030

3131
# Complexity
32-
- **Time complexity**: **$O(\text{m} \times \text{n})$** is the number of rows and (n) is the number of columns in the grid. We iterate over each possible `3x3` subgrid and check if it is a magic square.
32+
- **Time complexity**: $O(\text{m} \times \text{n})$ is the number of rows and (n) is the number of columns in the grid. We iterate over each possible `3x3` subgrid and check if it is a magic square.
3333

3434
- **Space complexity**: $O(1)$, aside from the input grid, as we use a constant amount of extra space to store the set of numbers and the sums.
3535

@@ -110,4 +110,4 @@ class Solution {
110110
}
111111
```
112112

113-
If it can help you, please give me a upvote. Thank you so for reading!
113+
If it can help you, please give me an upvote. Thank you so much for reading!

0 commit comments

Comments
 (0)