일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 배열
- 문자열
- compose
- 리스트
- ContentProvider
- 백준
- Hilt
- 백준파이썬
- nullpointerexception방지
- 자바
- Kotlin
- list
- 자료형
- android
- composelifecycle
- 파이썬
- 티스토리챌린지
- 파이썬문법
- 프로그래머스
- 오블완
- 자바set
- filternotnull()
- Dependency
- jetpack
- 자바리스트정렬
- disposableeffect
- programmers
- Provider
- Java
- Python
Archives
- Today
- Total
목록dict (1)
study gomi
[프로그래머스/Programmers] 코딩테스트 입문 > 최빈값 구하기 (파이썬 Python)
문제https://school.programmers.co.kr/learn/courses/30/lessons/120812 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr 내 제출- 배열에서 각 숫자의 개수를 쉽게 계산하기 위해 Counter 사용.from collections import Counterdef solution(array): count = Counter(array) max_count = max(count.values()) modes = [num for num, freq in count.items() if freq == max_cou..
Practice/Programmers
2024. 5. 13. 20:32