Skip to content

Commit

Permalink
feat: 增加复杂度说明
Browse files Browse the repository at this point in the history
  • Loading branch information
azl397985856 authored May 8, 2020
1 parent f4933a2 commit 85d67d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions problems/221.maximal-square.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,7 @@ var maximalSquare = function(matrix) {
};
```

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

0 comments on commit 85d67d1

Please sign in to comment.