File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 44
55### 성능 요약
66
7- 메모리: 41.7 MB, 시간: 22.34 ms
7+ 메모리: 41.3 MB, 시간: 8.53 ms
88
99### 구분
1010
1616
1717### 제출 일자
1818
19- 2025년 08월 23일 12:56:49
19+ 2025년 09월 15일 23:32:14
2020
2121### 문제 설명
2222
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments