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 | 29 | 30 | 31 |
Tags
- string construction
- boj 11657
- boj 6443
- 프로그래밍공부
- 비밀 코드 해독
- two characters
- DirectX
- find the running median
- making anagrams
- DirectX12
- ice cream parlor
- lock free stack
- dp
- lock based stack
- count triplets
- boj 1074
- LCS
- find the town judge
- 지게차와 크레인
- boj 1717
- 브루트포스
- lock based queue
- special string again
- PCCE
- 2025 프로그래머스 코딩챌린지 1차예선
- the maximum subarray
- the longest increasing subsequence
- pcce 기출문제 풀이
- c++
- pccp 기출문제 풀이
Archives
- Today
- Total
오구의코딩모험
[Python] K번째수 본문
반응형
[코딩테스트 고득점 KIT - 정렬]
리스트 인덱스, 슬라이싱만 잘해주면 어려움 없이 풀 수 있는 문제였다!
끝
def solution(array, commands):
return [sorted(array[com[0]-1:com[1]])[com[2]-1] for com in commands]
반응형
'프로그래밍 공부 > 프로그래머스' 카테고리의 다른 글
[Python] 카펫 (0) | 2023.01.02 |
---|---|
[Python] H-Index (0) | 2023.01.02 |
[Python] 디스크 컨트롤러 (0) | 2022.12.31 |
[Python] 더 맵게 (0) | 2022.12.30 |
[Python] 주식가격 (0) | 2022.12.30 |
Comments