Skip to content

Commit 70a90f2

Browse files
committed
[level 3] Title: 정수 삼각형, Time: 8.53 ms, Memory: 41.3 MB -BaekjoonHub
1 parent 538d0bf commit 70a90f2

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

프로그래머스/3/43105. 정수 삼각형/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### 성능 요약
66

7-
메모리: 41.7 MB, 시간: 22.34 ms
7+
메모리: 41.3 MB, 시간: 8.53 ms
88

99
### 구분
1010

@@ -16,7 +16,7 @@
1616

1717
### 제출 일자
1818

19-
2025년 08월 23일 12:56:49
19+
2025년 09월 15일 23:32:14
2020

2121
### 문제 설명
2222

프로그래머스/3/43105. 정수 삼각형/정수 삼각형.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ function solution(triangle) {
44
let each_row = [];
55
for (let j = 0; j < triangle[i].length; j++) {
66
let temp = -1;
7-
// initial case
87
if (i === 0 && j === 0) {
98
temp = triangle[i][j]
109
} else {
@@ -18,9 +17,8 @@ function solution(triangle) {
1817
}
1918
each_row.push(temp)
2019
}
21-
// 연산한 값 계산
2220
dp_triangle.push(each_row)
2321
}
2422

25-
return Math.max(...dp_triangle[dp_triangle.length -1]);
23+
return Math.max(...dp_triangle[dp_triangle.length - 1]);
2624
}

0 commit comments

Comments
 (0)