Skip to content

Commit

Permalink
외계어 사전
Browse files Browse the repository at this point in the history
  • Loading branch information
dudwns committed May 23, 2023
1 parent 775ba9c commit 28cefea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Programmers/exam80.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function solution(spell, dic) {
return dic.filter((v) => spell.every((c) => v.includes(c))).length ? 1 : 2;
}

0 comments on commit 28cefea

Please sign in to comment.