#23 [파이썬] 프로그래머스: 정수 삼각형
https://programmers.co.kr/learn/courses/30/lessons/43105?language=python3 코딩테스트 연습 - 정수 삼각형 [[7], [3, 8], [8, 1, 0], [2, 7, 4, 4], [4, 5, 2, 6, 5]] 30 programmers.co.kr def solution(triangle): for i in range(1, len(triangle)): for j in range(i+1): if j == 0: triangle[i][j] += triangle[i-1][0] elif i == j: triangle[i][j] += triangle[i-1][-1] else: triangle[i][j] += max(triangle[i-1][j-1], triangl..
2021. 6. 27.