티스토리 뷰
from itertools import combinations
def solution(numbers):
answer = []
numbers = list(combinations(numbers, 2))
for i in numbers:
answer.append(i[0]+i[1])
return (sorted(set(answer)))
'코딩테스트 대비' 카테고리의 다른 글
[프로그래머스] 제일 작은 수 제거하기 (0) | 2022.02.07 |
---|---|
[프로그래머스] 행렬의 덧셈 (0) | 2022.02.07 |
[프로그래머스] 문자열 내 마음대로 정렬하기 (0) | 2022.02.07 |
[프로그래머스] 다트 게임 (0) | 2022.02.06 |
[프로그래머스] 문자열 다루기 기본 (0) | 2022.02.06 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- dfs
- 설치하기
- 파이썬
- matplotlib
- 다익스트라
- 이것이코딩테스트다
- shellscript
- pytorch
- LGSVL
- 카카오
- numpy
- 설치
- BFS
- torch
- 프로그래머스
- Python
- 코딩테스트
- 동적프로그래밍
- torchscript
- PIP
- 백준
- version
- error
- docker
- notfound
- 최소신장트리
- tensorflow
- n과m
- 백트래킹
- CUDA
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함