일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- android
- 파이썬문법
- 티스토리챌린지
- programmers
- Python
- jetpack
- ContentProvider
- Java
- 오블완
- compose
- 자바
- Provider
- 문자열
- 프로그래머스
- 백준파이썬
- 배열
- 파이썬
- filternotnull()
- nullpointerexception방지
- Dependency
- 자바리스트정렬
- Hilt
- disposableeffect
- 백준
- 자료형
- list
- 리스트
- composelifecycle
- 자바set
- Kotlin
Archives
- Today
- Total
목록collections모듈 (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