Skip to content

Commit c49237b

Browse files
authored
시간복잡도 표기 수정
1 parent f757103 commit c49237b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

word-search/jaejeong.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class SolutionWordSearch {
66
public boolean exist(char[][] board, String word) {
77
// 상하좌우 방문 여부 체크하면서 DFS 탐색
88
// index 기준으로 word와 비교하면서 같을 때만 추가 탐색
9-
// 시간복잡도: O(N) > 방문 여부 체크하면서 기방문한 곳은 탐색하지 않기 때문
9+
// 시간복잡도: O(M * N * 4^L) > M: board 행, N: board 열, 4: 상하좌우 4방향, L: word의 길이
1010
// 공간복잡도: O(1) > 별도 메모리 할당하지 않음
1111
for (int i = 0; i < board.length; i++) {
1212
for (int j = 0; j < board[0].length; j++) {

0 commit comments

Comments
 (0)