Skip to content

Commit

Permalink
1351 solved
Browse files Browse the repository at this point in the history
  • Loading branch information
zzilcc committed May 4, 2020
1 parent 0697726 commit a6a505a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ var countNegatives = function(arr) {

## 复杂度分析

时间复杂度: O(m)。
时间复杂度: O(mn)。 因为如果矩阵中所有的数都为正数,那么要遍历整个矩阵,所以时间复杂度是O(mn)。


空间复杂度:O(1)。

Expand Down

0 comments on commit a6a505a

Please sign in to comment.