Last active
August 21, 2020 08:34
-
-
Save yungyungGwon/7e72ca600145f740c50c0577a585a250 to your computer and use it in GitHub Desktop.
Algorithm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function solution(seoul){ | |
var answer = ''; | |
for(var i = 0; i < seoul.length; i++){ | |
if(seoul[i] === 'Kim'){ | |
answer = '김서방은 ' + i + '에 있다'; | |
break; | |
} | |
} | |
return answer; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment