[프로그래머스] 스티커모으기(2)
import java.util.*; class Solution { public int solution(int sticker[]) { if(sticker.length==1){ return sticker[0]; } int answer = 36; int temp1 = 0; int temp2 = 0; int[] dp = new int[sticker.length]; dp[0] = sticker[0]; dp[1] = dp[0]; for(int i=2; i
2020.04.07