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
- Optimizer
- fasterRCNN
- ComputerVision
- DataAugmentation
- 네이버AI부스트캠프
- 프로그래머스
- BatchNormalization
- 밑바닥부터 시작하는 딥러닝
- f1loss
- 정렬
- ImageClassification
- pytorch
- 우선순위큐
- 힙
- 자료구조끝판왕문제
- mmdetectionv3
- labelsmoothingloss
- Focal Loss
- 중복순열
- autograd
- 네이버 ai 부스트캠프
- layernormalization
- labelsmoothing
- clibration
- cmp_to_key
- l2penalty
- focalloss
- inference
- objectdetection
- noiserobustness
Archives
- Today
- Total
목록힙 (1)
HealthyAI

max_heap과 min_heap을 동시에 저장 하면서 비교 해야 됐던 이중 우선 순위 큐 문제이다. 처음에는 최댓값을 구하는 함수로 풀었었는데 연산 횟수가 늘고, 자료가 증가 할 수록 연산의 과부화가 생겨 우선순위 큐를 선택하여 다시 풀이법을 공부하였다. from heapq import heappush, heappop def solution(operations): min_heap = [] max_heap = [] for op in operations: if op == 'D 1': if max_heap: heappop(max_heap) if not max_heap or -max_heap[0] < min_heap[0]: min_heap, max_heap = [], [] elif op == 'D -1': i..
Coding test/프로그래머스
2023. 1. 19. 15:39