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
- 1주일회고
- 개발자부트캠프추천
- infcon 2024
- 인프콘 2024
- spring batch 5.0
- TiL
- 프로그래머스 이중우선순위큐
- 코딩테스트 준비
- 프로그래머스
- 빈 충돌
- jwttoken
- 파이썬
- 커스텀 헤더
- 99클럽
- JavaScript
- Spring multimodule
- @FeignClient
- DesignPattern
- 전략패턴 #StrategyPattern #디자인패턴
- 항해99
- 디자인패턴
- 단기개발자코스
- 개발자 취업
- 취업리부트코스
- Python
- jwt
- 구글 OAuth login
- KPT회고
- 디자인 패턴
- 빈 조회 2개 이상
Archives
- Today
- Total
m1ndy5's coding blog
프로그래머스 K번째수 with Python 본문
https://school.programmers.co.kr/learn/courses/30/lessons/42748
문제 그대로 작성하면 풀리는 문제였다.
def solution(array, commands):
answer = []
for l in commands:
arr = sorted(array[l[0]-1:l[1]])
answer.append(arr[l[2]-1])
return answer
'알고리즘 with python > 20240909' 카테고리의 다른 글
프로그래머스 입국심사 with Python (0) | 2024.10.10 |
---|---|
프로그래머스 최소직사각형 with Python (1) | 2024.09.13 |
프로그래머스 같은 숫자는 싫어 with Python (0) | 2024.09.11 |
프로그래머스 완주하지 못한 선수 with Python (0) | 2024.09.10 |
프로그래머스 폰켓몬 with Python (0) | 2024.09.09 |