Skip to content

Commit 85d67d1

Browse files
authored
feat: 增加复杂度说明
1 parent f4933a2 commit 85d67d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

problems/221.maximal-square.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,7 @@ var maximalSquare = function(matrix) {
9898
};
9999
```
100100

101+
***复杂度分析***
102+
- 时间复杂度:$O(M * N)$,其中M为行数,N为列数。
103+
- 空间复杂度:$O(N)$,其中N为列数。
101104

0 commit comments

Comments
 (0)