Skip to content

Commit

Permalink
삼각형의 완성조건(1)
Browse files Browse the repository at this point in the history
  • Loading branch information
dudwns committed Mar 24, 2023
1 parent c2b2f0e commit ee5702c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Programmers/exam26.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
function solution(sides) {
sides.sort((a, b) => b - a);
return sides[0] < sides[1] + sides[2] ? 1 : 2;
}

0 comments on commit ee5702c

Please sign in to comment.