Skip to content

Commit

Permalink
짝수 홀수 개수
Browse files Browse the repository at this point in the history
  • Loading branch information
dudwns committed Mar 24, 2023
1 parent 9f0d1dd commit 3b65b39
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Programmers/exam39.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function solution(num_list) {
return [num_list.filter((n) => n % 2 === 0).length, num_list.filter((n) => n % 2 !== 0).length];
}

0 comments on commit 3b65b39

Please sign in to comment.