Skip to content

Commit

Permalink
최댓값 만들기(1)
Browse files Browse the repository at this point in the history
  • Loading branch information
dudwns committed Mar 23, 2023
1 parent 8620f88 commit 571b4e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Programmers/exam14.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
function solution(numbers) {
numbers.sort((a, b) => b - a);
return numbers[0] * numbers[1];
}

0 comments on commit 571b4e7

Please sign in to comment.