Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Computer Vision
- Deeplearning
- 스택
- 알고리즘
- OpenCV
- 3D
- 큐
- Object Detection
- 파이썬
- 프로그래머스
- level2
- Threshold
- Python
- 논문 구현
- Object Tracking
- reconstruction
- transformer
- 딥러닝
- deep learning
- cv2
- 임계처리
- NLP
- re-identification
- Knowledge Distillation
- attention
- point cloud
- numpy
- 자료구조
- center loss
- flame
Archives
- Today
- Total
목록k번째수 (1)
공돌이 공룡의 서재
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/cebxxG/btqFGNUnEQB/CVfARuogqTdkKBCETgOF1K/img.png)
def solution(array, commands): answer = [] for i in range(len(commands)): temp = array[commands[i][0]-1:(commands[i][1])] temp = sorted(temp) answer.append(temp[commands[i][2]-1]) return answer 코드 설명: 정렬 알고리즘을 물어보나 싶었는데 효율성 테스트가 없는 것을 보아하니 그런 문제는 아니고 문제 조건을 잘 이해하고 있는지, List에 대해 잘 이해하고 있는지를 물어보는듯하다. List의 slice와 sorted() 함수를 이용하면 쉽게 풀 수 있다. 다만 index와 문제 조건의 '번째'는 1씩 차이가 나니 주의해야 한다. +@: 주어진 리스트들의 ..
코딩/프로그래머스
2020. 7. 15. 03:59