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
- Algorithm
- Selection Sorting
- s
- JSON
- 메모리구조
- 이스케이프 문자
- 윤성우의 열혈 자료구조
- 혼자 공부하는 C언어
- coding test
- C 언어 코딩 도장
- 알기쉬운 알고리즘
- datastructure
- insertion sort
- stream
- 윤성우 열혈자료구조
- buffer
- C programming
- Stack
- list 컬렉션
- 이것이 자바다
- Graph
- R
- Serialization
Archives
- Today
- Total
Engineering Note
스킬 체크 테스트 Level.1 본문
문제
코드
def solution(arr, divisor):
answer = []
for elem in arr:
if elem % divisor == 0:
answer.append(elem)
if len(answer) == 0:
answer.append(-1)
answer.sort()
return answer
문제해결방법
'Problem Solving > Programmers' 카테고리의 다른 글
[Programmers] 피로도 (0) | 2022.01.03 |
---|---|
[Programmers] 모의고사 (0) | 2021.11.02 |
비밀지도 (0) | 2021.07.17 |
네트워크 (0) | 2021.06.27 |
단어변환 (0) | 2021.06.27 |
Comments