Skip to content

Commit 6672f99

Browse files
committed
product-of-array-except-self 풀이 설명 추가
1 parent b6fb14e commit 6672f99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

product-of-array-except-self/suhyenim.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public int[] productExceptSelf(int[] nums) {
3535
}
3636
}
3737
38-
풀이2:
38+
풀이2: 풀이1과 논리는 동일하지만, 누적곱을 배열을 사용해서 저장해두는 것이 아니라 변수 하나를 사용해서 저장하도록 변경
3939
성공: Time: 3 ms (19.55%), Space: 55.4 MB (61.74%)
4040
=> 시간 복잡도: 시간 복잡도: O(n), 공간 복잡도: 결과 배열 제외하면 O(1)
4141

0 commit comments

Comments
 (0)