일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 코크리
- IVI
- docker attach
- cocre
- ssh
- logistic regression
- 티스토리챌린지
- Multi-Resolution Networks for Semantic Segmentation in Whole Slide Images
- 프로그래머스
- docker exec
- docker
- airflow
- vscode
- WSSS
- 사회조사분석사2급
- Decision Boundary
- 오블완
- 백신후원
- CellPin
- GIT
- cs231n
- 도커
- 히비스서커스
- AIFFEL
- numpy
- Jupyter notebook
- 기초확률론
- aiffel exploration
- HookNet
- Pull Request
- Today
- Total
목록해시 (2)
히비스서커스의 블로그

프로그래머스 코딩테스트 문제 중 해시를 이용해야하는 문제 베스트앨범에 대해 파이썬으로 해결한 풀이와 해설입니다. 문제링크 https://programmers.co.kr/learn/courses/30/lessons/42579 코딩테스트 연습 - 베스트앨범 스트리밍 사이트에서 장르 별로 가장 많이 재생된 노래를 두 개씩 모아 베스트 앨범을 출시하려 합니다. 노래는 고유 번호로 구분하며, 노래를 수록하는 기준은 다음과 같습니다. 속한 노래가 programmers.co.kr solution def solution(genres, plays): hash = dict() for i in range(len(genres)): if genres[i] in hash: hash[genres[i]].append([i, play..

프로그래머스 코딩테스트 문제 중 해시를 이용해야하는 문제 위장에 대해 파이썬으로 해결한 풀이와 해설입니다. 문제링크 https://programmers.co.kr/learn/courses/30/lessons/42578 코딩테스트 연습 - 위장 programmers.co.kr solution def solution(clothes): hash = dict() for i, cloth in enumerate(clothes): if cloth[1] in hash: hash[cloth[1]] += 1 else: hash[cloth[1]] = 2 answer = 1 for j, value in enumerate(hash.values()): answer *= value return answer-1 해설 저는 크게 2파..