사랑하애오
[프로그래머스 | 자바스크립트] 삼각형의 완성조건(2)

솔루션 function solution(sides) { const min = Math.min(...sides); const max1 = Math.max(...sides); const max2 = min + max1 - 1; return max2 - (max1 - min); } 솔루션 function solution(sides) { return Math.min(...sides) * 2 - 1; }