Skip to content

Commit

Permalink
Merge pull request #47 from BaeSangUng/master
Browse files Browse the repository at this point in the history
완주하지못한선수, sorting해서 다른것 빼기
  • Loading branch information
BaeSangUng authored May 8, 2019
2 parents cc8ce77 + 94c736d commit 2dcf251
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 배상웅/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
def solution(participant, completion):
answer = ''
participant.sort()
completion.sort()
i=0
while i < len(participant):
if i == len(completion):
answer += participant[i]
break
if participant[i] != completion[i]:
answer += participant[i]
break
i += 1

return answer

0 comments on commit 2dcf251

Please sign in to comment.