Skip to content

Commit

Permalink
숫자 찾기
Browse files Browse the repository at this point in the history
  • Loading branch information
dudwns committed Apr 22, 2023
1 parent 881358b commit 990483b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Programmers/exam57.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
function solution(num, k) {
let answer = num.toString().indexOf(k);
return answer < 0 ? -1 : answer + 1;
}

0 comments on commit 990483b

Please sign in to comment.