Skip to content

Commit

Permalink
암호 해독
Browse files Browse the repository at this point in the history
  • Loading branch information
dudwns committed Mar 26, 2023
1 parent d95b02a commit 9cc2ea8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Programmers/exam41.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function solution(cipher, code) {
return [...cipher].filter((s, index) => (index + 1) % code === 0).join("");
}

0 comments on commit 9cc2ea8

Please sign in to comment.