사랑하애오

솔루션

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;
}
profile

사랑하애오

@사랑하애

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!