Skip to content

Instantly share code, notes, and snippets.

@yungyungGwon
Last active August 21, 2020 08:34
Show Gist options
  • Save yungyungGwon/7e72ca600145f740c50c0577a585a250 to your computer and use it in GitHub Desktop.
Save yungyungGwon/7e72ca600145f740c50c0577a585a250 to your computer and use it in GitHub Desktop.
Algorithm
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