DCP 124

2020. 12. 7. 04:01PS/도전

All problems are from https://www.dailycodingproblem.com/

 

My Solution Codes : https://github.com/Kusin/DailyCoding

 

Kusin/DailyCoding

DailyCodingProblem. Contribute to Kusin/DailyCoding development by creating an account on GitHub.

github.com

Daily Coding Problem# 124: 격자판 DP

Problem Description

 

Idea

DP(i,j) : (1,1)부터 (i,j)까지 오는 동안 먹을 수 있는 동전 가치 합의 최댓값

DP(i,j) = max(DP(i,j-1),DP(i-1,j)) + arr[i][j]

 

EZ~ O(NM) DP

Implementation

Just do it

728x90