[Programmers | Level 3] 정수 삼각형 (Python)
https://programmers.co.kr/learn/courses/30/lessons/43105 코딩테스트 연습 - 정수 삼각형 [[7], [3, 8], [8, 1, 0], [2, 7, 4, 4], [4, 5, 2, 6, 5]] 30 programmers.co.kr def solution(triangle): n = len(triangle[-1]) d = [[0] * i for i in range(1, n + 1)] d[0][0] = triangle[0][0] for i in range(1, n): d[i][0] = d[i - 1][0] + triangle[i][0] d[i][-1] = d[i - 1][-1] + triangle[i][-1] for i in range(2, n): for j in ra..