코딩테스트(파이썬)
[동빈나 - 이것이 코딩 테스트다] 정리
이융희
2021. 6. 22. 16:12
728x90
이론 및 알고리즘별 풀이 정리가 잘 포스팅되어 있는 블로그가 있어 참고하여 정리해보도록 하려고 한다.
https://freedeveloper.tistory.com/355?category=888096
[이것이 코딩 테스트다 with Python] 1강_코딩 테스트란 무엇인가? + 카카오, 라인, 삼성전자 출제 경
www.youtube.com/watch?v=Mf0pYO8VAZk&list=PLVsNizTWUw7H9_of5YCB0FmsSc-K44y81&index=1 이것이 코딩 테스트다 소스코드 https://github.com/ndb796/python-for-coding-test 온라인 저지(Online Judge) 란? 프로..
freedeveloper.tistory.com
먼저 몸풀기로 간단한 정렬 문제를 풀어보았다.
프로그래머스 정렬 level1 - K번째수
def solution(array, commands):
answer = []
for c in commands: # 퀵정렬 직접 구현해서 k 번째에서 탈출하도록 코딩
answer.append(sorted(array[c[0]-1:c[1]])[c[2]-1])
return answer