We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6fb14e commit 6672f99Copy full SHA for 6672f99
product-of-array-except-self/suhyenim.java
@@ -35,7 +35,7 @@ public int[] productExceptSelf(int[] nums) {
35
}
36
37
38
-풀이2:
+풀이2: 풀이1과 논리는 동일하지만, 누적곱을 배열을 사용해서 저장해두는 것이 아니라 변수 하나를 사용해서 저장하도록 변경
39
성공: Time: 3 ms (19.55%), Space: 55.4 MB (61.74%)
40
=> 시간 복잡도: 시간 복잡도: O(n), 공간 복잡도: 결과 배열 제외하면 O(1)
41
0 commit comments