단어 퍼즐 ( Level 4 ) Programmers 2017 팁스타운 ( JavaScript ) 문제 링크 나의 풀이 function solution(strs, t) { const dp = Array(t.length + 1).fill(20001); const longest = strs.sort((a,b) => b.length - a.length)[0].length; dp[0] = 0 for ( let i = 1; i = Math.max(0, i-longest); j-- ) { const start = j === 0 ? 0 : j - 1; if ( strs.includes(t.slice(start,i)) ) { dp[i] = Mat..