Skip to content

Commit b69e7b4

Browse files
committed
tc and pc
1 parent 502f347 commit b69e7b4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

허현빈/5주차/260128-1.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ var merge = function (intervals) {
2727
ans.push([preStart, preEnd]);
2828
return ans;
2929
};
30+
31+
// 시간복잡도 O(N)
32+
// 공간복잡도 O(2N)

허현빈/5주차/260128-2.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,6 @@ var exist = function (b, w) {
4848

4949
return false;
5050
};
51+
52+
// 시간 복잡도 O(N * M * 3^L) , N = 그리그 가로, M = 그리드 세로, 3 = dfs 하나당 뻗어나갈 수 있는 가짓수, L = 문자열 최대 길이 = dfs 최대 깊이
53+
// 공간 복잡도 O(N*M), dfs 특성상 q의 최대 크기는 문자열의 길이를 넘기지 않음

0 commit comments

Comments
 (0)