250x250
Link
๋์ GitHub Contribution ๊ทธ๋ํ
Loading data ...
Notice
Recent Posts
Recent Comments
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Lambda
- ๋ฐ์ดํฐ๋ถ๊ท ํ
- ๋น ๋ฐ์ดํฐ๋ถ์๊ธฐ์ฌ
- iloc
- numpy
- pandas
- ์ค๋ฒ์ํ๋ง
- ๋ฐ์ดํฐ๋ถ์์ค์ ๋ฌธ๊ฐ
- ADP
- ํ์ด์ฌ
- LDA
- ํฌ๋กค๋ง
- ๋ฐ์ดํฐ๋ถ์
- ๋น ๋ฐ์ดํฐ
- ์๋ํด๋ผ์ฐ๋
- ๊ตฐ์งํ
- Python
- ๋ฐ์ดํฐ๋ถ์์ ๋ฌธ๊ฐ
- ์ธ๋์ํ๋ง
- ํ ์คํธ๋ถ์
- datascience
- DBSCAN
- dataframe
- opencv
- ๋์ํ๋ณธ
- ADsP
- t-test
- ์ฃผ์ฑ๋ถ๋ถ์
- PCA
- ๋ ๋ฆฝํ๋ณธ
Archives
Data Science LAB
[Pythob] ํ๋ก๊ทธ๋๋จธ์ค ์ฝ๋ฉํ ์คํธ ์ฐ์ต - level 1(์์ฃผํ์ง ๋ชปํ ์ ์) ๋ณธ๋ฌธ
๐ Coding Test/Programmers
[Pythob] ํ๋ก๊ทธ๋๋จธ์ค ์ฝ๋ฉํ ์คํธ ์ฐ์ต - level 1(์์ฃผํ์ง ๋ชปํ ์ ์)
ใ ใ ใ ใ 2022. 8. 28. 15:13728x90
1. ๋ฌธ์
2. ์ ์ถ๋ ฅ ์์
3. ๋ด ํ์ด
def solution(participant, completion):
answer = ''
for i in participant:
if i in completion:
completion.remove(i)
else:
answer = answer+i
return answer
ํธ์ถ์ฑ ํ ์คํธ๋ฅผ ํต๊ณผํ์ง ๋ชปํ๋คใ
4. ๋ค๋ฅธ์ฌ๋ ํ์ด
def solution(participant, completion):
participant.sort()
completion.sort()
for p,c in zip(participant, completion):
if p != c:
return p
return participant.pop()
728x90
'๐ Coding Test > Programmers' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Comments