Skip to content

Commit 18c5181

Browse files
update post
1 parent 541b7aa commit 18c5181

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

_posts/2024-07-30-leetcode-54.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,11 @@ class Solution {
9898

9999
## TC, SC
100100

101-
n은 matrix의 모든 아이템의 수를 한다고 하였을 때, 시간복잡도는 `O(n)`, 공간복잡도는 `O(1)` 이다. (공간복잡도의 경우 결과를 위해 생성되는 List는 계싼에서 제외함.)
101+
문제에서 다음과 같이 정의 되어 있다.
102+
103+
```
104+
m == matrix.length
105+
n == matrix[i].length
106+
```
107+
108+
시간복잡도는 `O(m * n)`, 공간복잡도는 `O(1)` 이다. (공간복잡도의 경우 결과를 위해 생성되는 List는 계산에서 제외함.)

0 commit comments

Comments
 (0)