Skip to content

Commit

Permalink
k의 개수
Browse files Browse the repository at this point in the history
  • Loading branch information
dudwns committed Apr 30, 2023
1 parent 2f3178e commit a1c0390
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Programmers/exam65.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
function solution(i, j, k) {
let a = "";
for (let n = i; n <= j; n++) {
a += n;
}
return a.split(k).length - 1;
}

0 comments on commit a1c0390

Please sign in to comment.