[Algorithm] 최댓값 만들기(1)

yeah·2023년 10월 20일

Algorithm

목록 보기
21/27
post-thumbnail

Mission.

작성한 답

function solution(numbers) {
    numbers.sort((a, b) => b - a);
    return numbers[0] * numbers[1];
}

참고 자료

https://school.programmers.co.kr/learn/courses/30/lessons/120847

profile
기록과 회고

0개의 댓글