Skip to content

Commit 9eb1636

Browse files
committed
누적곱 풀이 주석수정
1 parent fa2826c commit 9eb1636

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

product-of-array-except-self/youngduck.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ var productExceptSelf = function (nums) {
77

88
const result = new Array(numsLength).fill(1);
99

10-
// for문 하나로 처리할경우 O(n^2).
10+
// 일반적으로 for문 하나로 자기자신 제외하면서 곱셈을하면서 처리할경우 O(n^2).
1111
// for문 두개로 나눠서 처리할경우 O(n). 누적곱 개념을 활용해줘야함
12+
// for문 하나로 누적곱 개념을 활용해서 처리할경우 O(n).
1213

1314
let left = 1;
1415
let right = 1;

0 commit comments

Comments
 (0)